constdetox=require('detox');constconfig=require('../package.json').detox;constexec=require('shell-utils').exec;constadapter=require('detox/runners/jest/adapter');jest.setTimeout(300000);jasmine.getEnv().addReporter(adapter);beforeAll(async()=>{awaitdetox.init(config,{launchApp:false});disableAndroidEmulatorAnimations();});afterAll(async()=>{awaitadapter.afterAll();awaitdetox.cleanup();});beforeEach(async()=>{awaitadapter.beforeEach();});functiondisableAndroidEmulatorAnimations(){if(device.getPlatform()==='android'){constdeviceId=device._deviceId;exec.execAsync(`adb -s ${deviceId} shell settings put global window_animation_scale 0.0`);exec.execAsync(`adb -s ${deviceId} shell settings put global transition_animation_scale 0.0`);exec.execAsync(`adb -s ${deviceId} shell settings put global animator_duration_scale 0.0`);}}