我正在尝试在Team City中运行我的Jest单元测试,但我总是得到如下所示的提示。
No tests found related to files changed since last commit.
Press `a` to run all tests, or run Jest with `--watchAll`.
Watch Usage
› Press a to run all tests.
› Press f to run only failed tests.
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press q to quit watch mode.
› Press Enter to trigger a test run.
我尝试运行
yarn test a
来运行所有测试。但是一旦测试完成执行,我仍然得到相同的提示。我尝试了yarn test a q
,但那不起作用。我还尝试了yarn test a --forceExit
和yarn test a --bail
,但没有任何反应,我仍然会得到提示。如何在没有交互的情况下运行所有Jest测试,以便通过Team City运行?非常感谢您的帮助。
--ci
选项吗? - Senior Pomidor--silent
。 - Senior Pomidor