--test-only
版本历史
| 版本 | 变更 |
|---|---|
| v20.0.0 | The test runner is now stable. |
| v18.0.0, v16.17.0 | 新增于: v18.0.0, v16.17.0 |
配置测试运行器仅执行设置了 only 选项的顶层测试。当测试隔离被禁用时,此标志不是必须的。
🌐 Configures the test runner to only execute top level tests that have the only
option set. This flag is not necessary when test isolation is disabled.