l***@163.com
l***@163.com
  • 发布:2021-07-02 10:04
  • 更新:2023-03-28 16:28
  • 阅读:802

uniapp vue-cli项目命令行执行全部测试之后,Jest命令没有退出命令行,是什么原因呢?

分类:uni-app

我自己创建的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.

2021-07-02 10:04 负责人:无 分享
已邀请:
aak12345

aak12345

请问解决没?我也遇到这个问题

aak12345

aak12345

"test:android": "cross-env UNI_PLATFORM=app-plus UNI_OS_NAME=android jest -i --detectOpenHandles --forceExit",

aak12345

aak12345

加了这两个--detectOpenHandles --forceExit

要回复问题请先登录注册