This repository was archived by the owner on Aug 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdetox.config.js
More file actions
51 lines (51 loc) · 1.21 KB
/
detox.config.js
File metadata and controls
51 lines (51 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
testRunner: 'jest',
runnerConfig: 'e2e/config.json',
skipLegacyWorkersInjection: true,
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath: 'SPECIFY_PATH_TO_YOUR_APP_BINARY',
},
'android.debug': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
build:
'cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..',
},
'android.release': {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/releaseE2E/app-releaseE2E.apk',
build:
'cd android && ./gradlew assembleReleaseE2E assembleAndroidTest -DtestBuildType=releaseE2E && cd ..',
},
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 11',
},
},
emulator: {
type: 'android.emulator',
device: {
avdName: 'Nexus5X_API_30',
},
},
},
configurations: {
ios: {
device: 'simulator',
app: 'ios.debug',
},
'android.debug': {
device: 'emulator',
app: 'android.debug',
},
'android.release': {
device: 'emulator',
app: 'android.release',
},
},
};