react-native-navigation的迁移库

12345678910111213141516171819202122
  1. /*eslint-disable*/
  2. require('babel-polyfill');
  3. const detox = require('detox');
  4. const detoxConfig = require('../package.json').detox;
  5. const release = process.env.detoxMode === 'release';
  6. before(function(done) {
  7. this.timeout(30000);
  8. detoxConfig['ios-simulator'].app = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
  9. detox.config(detoxConfig);
  10. detox.start(done);
  11. });
  12. afterEach(function(done) {
  13. detox.waitForTestResult(done);
  14. });
  15. after(function(done) {
  16. detox.cleanup(done);
  17. });