[tests] misc

This commit is contained in:
Salakar 2018-04-09 09:32:59 +01:00
parent 77421480b3
commit 8d40739141
3 changed files with 8 additions and 2 deletions

View File

@ -18,3 +18,8 @@ Object.defineProperty(global, 'firebase', {
return bridge.module;
},
});
global.sleep = duration =>
new Promise(resolve => {
setTimeout(resolve, duration);
});

View File

@ -1,6 +1,6 @@
--recursive
--timeout 120000
--slow 750
--slow 1
--bail
--exit
--require bridge/platform/node

View File

@ -14,7 +14,8 @@
"test-android-cover": "nyc detox test --configuration android.emu.debug",
"test-android-cover-reuse": "nyc detox test --configuration android.emu.debug --reuse",
"test-ios": "detox test --configuration ios.sim.debug",
"test-ios-cover": "nyc detox test --configuration ios.sim.debug --loglevel warn",
"test-ios-reuse": "detox test --configuration ios.sim.debug --reuse --loglevel warn",
"test-ios-cover": "nyc detox test --configuration ios.sim.debug",
"test-ios-cover-reuse": "nyc detox test --configuration ios.sim.debug --reuse --loglevel warn",
"ios:pod:install": "cd ios && rm -rf ReactNativeFirebaseDemo.xcworkspace && pod install && cd .."
},