问题描述
使用Jest-Circus作为测试跑步者运行排毒17.4.3,我正在使用iOS模拟器遇到以下错误。
detox[18766] WARN: [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
(id = -1000) isReady: {}
Unresponded network requests might result in timeout errors in Detox tests.
这是我package.json中Jest的版本。
"jest": "^26.4.1","jest-circus": "^26.4.1",
有什么想法可以进一步调试或修复吗?
解决方法
就我而言:从 18.0.0(2020 年 12 月)开始,Detox 要求您调用 for
,否则您的所有测试都将超时,因为应用未启动。请参阅migration guide。
不幸的是,这没有记录在 release notes 中,也没有在错误消息中提出建议 - 打开了 GitHub issue 以建议更清晰的文档。