0

我正在尝试在我的 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)
4

1 回答 1

2

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

于 2018-03-14T15:25:23.787 回答