react-native-navigation的迁移库

init.js 604B

1234567891011121314151617181920
  1. const detox = require('detox');
  2. const config = require('../package.json').detox;
  3. const exec = require('shell-utils').exec;
  4. before(async () => {
  5. await detox.init(config, { launchApp: false });
  6. disableAndroidEmulatorAnimations();
  7. });
  8. after(async () => {
  9. await detox.cleanup();
  10. });
  11. // Temporary solution, #2809
  12. function disableAndroidEmulatorAnimations() {
  13. exec.execAsync(`adb shell settings put global window_animation_scale 0.0`);
  14. exec.execAsync(`adb shell settings put global transition_animation_scale 0.0`);
  15. exec.execAsync(`adb shell settings put global animator_duration_scale 0.0`);
  16. }