react-native-navigation的迁移库

init.js 371B

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