【问题标题】:Detox v18 upgrade - App has not responded to the network requests below: (id = -1000) isReady: {}Detox v18 升级 - 应用未响应以下网络请求:(id = -1000) isReady: {}
【发布时间】: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 中遇到了一个问题,它已被恢复。谢谢

标签: expo detox


【解决方案1】:

对于 Detox 18.x.x,您需要关注 migration guide,否则您的应用会在启动时挂起。

【讨论】:

    猜你喜欢
    • 2020-04-07
    • 1970-01-01
    • 2013-08-05
    • 2016-11-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-01
    • 2021-10-26
    • 1970-01-01
    相关资源
    最近更新 更多