react-native-navigation的迁移库

init.js 432B

1234567891011121314151617181920
  1. require('babel-polyfill'); // eslint-disable-line import/no-extraneous-dependencies
  2. const detox = require('detox');
  3. before(async () => {
  4. const detoxConfig = {
  5. configurations: {
  6. ios: {
  7. binaryPath: process.env.detoxAppBuildPath,
  8. type: 'ios.simulator',
  9. name: 'iPhone 7'
  10. }
  11. }
  12. };
  13. await detox.init(detoxConfig, { launchApp: false });
  14. });
  15. after(async () => {
  16. await detox.cleanup();
  17. });