【问题标题】:Detox Error: Timeout of 120000ms exceeded. For async tests and hooks排毒错误:超过 120000 毫秒的超时。用于异步测试和钩子
【发布时间】:2018-08-09 02:57:18
【问题描述】:

我正在尝试在我的 react-native up 中运行一些 e2e 测试我正在使用 Detox,但我不断收到以下错误

1) "before all" hook:
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.


child_process.js:644
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts       
    at checkExecSyncError (child_process.js:601:13)
    at Object.execSync (child_process.js:641:13)
    at runMocha (/Users/Almog/Full-Time-Employment/Construction-Cloud/RnD/CCMobileApp/node_modules/detox/local-cli/detox-test.js:72:6)
    at Object.<anonymous> (/Users/Almog/Full-Time-Employment/Construction-Cloud/RnD/CCMobileApp/node_modules/detox/local-cli/detox-test.js:50:5)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)

【问题讨论】:

    标签: react-native detox


    【解决方案1】:

    尝试使用detox test --loglevel verbose 标志运行它,它可能会为您提供有关问题所在的更多信息。

    【讨论】:

      猜你喜欢
      • 2019-07-24
      • 2017-09-13
      • 2019-06-24
      • 2020-10-23
      • 2018-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-12
      相关资源
      最近更新 更多