我自己创建的vue-cli项目搭建的测试,跑完之后,Jest提醒还有其他操作,因此无法退出命令行。
然后我拿官方vue-clie hello的模板下来跑,也是同样的问题,请问有没有那个大佬遇到过这个问题呢?
Test Suites: 3 failed, 2 passed, 5 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 23.463s
Ran all test suites.
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with --detectOpenHandles
to troubleshoot this issue.
3 个回复
aak12345
请问解决没?我也遇到这个问题
aak12345
"test:android": "cross-env UNI_PLATFORM=app-plus UNI_OS_NAME=android jest -i --detectOpenHandles --forceExit",
aak12345
加了这两个--detectOpenHandles --forceExit