报错及解决方案: Cannot log after tests are done. Did you forget to wait for something async in your test? 在测试脚本的全局增加如下代码 jest.setTimeout(30000); TypeError: setTimeout(…).unref is not a function 解决方案