Skip to content

Commit 3ada3bb

Browse files
committed
test(e2e): use yarn detox ... vs ./node_modules/.bin/detox ...
1 parent 3406ce6 commit 3ada3bb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
"tests:packager:jet-reset-cache": "cd tests && cross-env REACT_DEBUGGER=\"echo nope\" node_modules/.bin/react-native start --reset-cache --no-interactive",
2929
"tests:emulator:start": "cd ./.github/workflows/scripts && ./start-firebase-emulator.sh --no-daemon",
3030
"tests:emulator:start-ci": "cd ./.github/workflows/scripts && ./start-firebase-emulator.sh",
31-
"tests:android:build": "cd tests && ./node_modules/.bin/detox build --configuration android.emu.debug",
32-
"tests:android:build-release": "cd tests && ./node_modules/.bin/detox build --configuration android.emu.release",
33-
"tests:android:test": "cd tests && ./node_modules/.bin/detox test --configuration android.emu.debug",
34-
"tests:android:test:debug": "cd tests && ./node_modules/.bin/detox test --configuration android.emu.debug --inspect",
35-
"tests:android:test-reuse": "cd tests && ./node_modules/.bin/detox test --configuration android.emu.debug --reuse",
36-
"tests:android:test-cover": "cd tests && ./node_modules/.bin/nyc ./node_modules/.bin/detox test --configuration android.emu.debug",
37-
"tests:android:test-cover-reuse": "cd tests && ./node_modules/.bin/nyc ./node_modules/.bin/detox test --configuration android.emu.debug --reuse",
31+
"tests:android:build": "cd tests && yarn detox build --configuration android.emu.debug",
32+
"tests:android:build-release": "cd tests && yarn detox build --configuration android.emu.release",
33+
"tests:android:test": "cd tests && yarn detox test --configuration android.emu.debug",
34+
"tests:android:test:debug": "cd tests && yarn detox test --configuration android.emu.debug --inspect",
35+
"tests:android:test-reuse": "cd tests && yarn detox test --configuration android.emu.debug --reuse",
36+
"tests:android:test-cover": "cd tests && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.debug",
37+
"tests:android:test-cover-reuse": "cd tests && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.debug --reuse",
3838
"tests:android:test:jacoco-report": "cd tests/android && ./gradlew jacocoAndroidTestReport",
39-
"tests:ios:build": "cd tests && ./node_modules/.bin/detox build --configuration ios.sim.debug",
40-
"tests:ios:build-release": "cd tests && ./node_modules/.bin/detox build --configuration ios.sim.release",
41-
"tests:ios:test": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF ./node_modules/.bin/detox test --configuration ios.sim.debug --loglevel warn",
42-
"tests:ios:test:debug": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF ./node_modules/.bin/detox test --configuration ios.sim.debug --loglevel warn --inspect",
43-
"tests:ios:test-reuse": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=\"698956B2-187B-49C6-9E25-C3F3530EEBAF\" ./node_modules/.bin/detox test --configuration ios.sim.debug --reuse --loglevel warn",
44-
"tests:ios:test-cover": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF ./node_modules/.bin/nyc ./node_modules/.bin/detox test --configuration ios.sim.debug --loglevel warn",
45-
"tests:ios:test-cover-reuse": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF node_modules/.bin/nyc ./node_modules/.bin/detox test --configuration ios.sim.debug --reuse --loglevel warn",
39+
"tests:ios:build": "cd tests && yarn detox build --configuration ios.sim.debug",
40+
"tests:ios:build-release": "cd tests && yarn detox build --configuration ios.sim.release",
41+
"tests:ios:test": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF yarn detox test --configuration ios.sim.debug --loglevel warn",
42+
"tests:ios:test:debug": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF yarn detox test --configuration ios.sim.debug --loglevel warn --inspect",
43+
"tests:ios:test-reuse": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=\"698956B2-187B-49C6-9E25-C3F3530EEBAF\" yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
44+
"tests:ios:test-cover": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF ./node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --loglevel warn",
45+
"tests:ios:test-cover-reuse": "cd tests && SIMCTL_CHILD_NSZombiesEnabled=1 SIMCTL_CHILD_FIRAAppCheckDebugToken=698956B2-187B-49C6-9E25-C3F3530EEBAF node_modules/.bin/nyc yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
4646
"tests:ios:pod:install": "cd tests && cd ios && rm -rf ReactNativeFirebaseDemo.xcworkspace && rm -f Podfile.lock && pod install --repo-update && cd ..",
4747
"format:markdown": "prettier --write \"docs/**/*.md\""
4848
},

0 commit comments

Comments
 (0)