【发布时间】:2021-04-09 19:49:14
【问题描述】:
我正在使用 Expo 进行排毒。
在升级到detox v18之前,我曾经收到以下错误:
detox[7528] WARN: [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
(id = -1000) isReady: {}
That might be the reason why the test "your test" has timed out.
我按照此处提供的修复方法解决了这个问题:https://github.com/expo/detox-tools/issues/1#issuecomment-740675824。 (tl;dr,对节点模块中的 detox expo 助手进行一些更改)。
升级到 Detox 18.0.1 后,我做了 v18.0.0 迁移版本中提到的修改(特别是自定义 detox 环境类)。但是,我现在遇到与上述相同的错误。我已经恢复了在节点模块中所做的更改(如上所述),但仍然没有运气。
我有以下相关包:
"detox": "^18.0.1",
"detox-expo-helpers": "^0.6.0",
"expo": "^38.0.0",
"expo-detox-hook": "^1.0.10",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"jest-expo": "^39.0.0",
【问题讨论】:
-
请尝试 18.0.2。我们在 18.0.1 中遇到了一个问题,它已被恢复。谢谢