排毒:App 没有响应下面的网络请求

Car*_*cia 5 jestjs detox jest-circus

使用 Jest-Circus 作为测试运行器运行 detox 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.
Run Code Online (Sandbox Code Playgroud)

这是我的 package.json 中 Jest 的版本。

 "jest": "^26.4.1",

 "jest-circus": "^26.4.1",  
Run Code Online (Sandbox Code Playgroud)

任何想法如何进一步调试或修复?

Luk*_*ams 0

就我而言:自 18.0.0(2020 年 12 月)起,Detox 要求您致电device.launchApp(),否则您的所有测试都将超时,因为应用程序未启动。请参阅迁移指南

不幸的是,这没有记录在发行说明中,也没有在错误消息中建议 - 打开一个GitHub 问题来建议更清晰的文档。