-
Notifications
You must be signed in to change notification settings - Fork 25
/
.detoxrc.js
57 lines (55 loc) · 1.26 KB
/
.detoxrc.js
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
52
53
54
55
56
57
const { execSync } = require('child_process')
execSync('source ./scripts/avd.defaults.sh')
execSync('source ./scripts/sim.defaults.sh')
module.exports = {
testRunner: {
$0: 'jest',
args: {
config: 'e2e/config/runnerConfig.js',
_: ['e2e'],
},
forwardEnv: true,
exposeGlobals: true,
},
apps: {
ios: {
name: 'ExampleApp',
type: 'ios.app',
binaryPath: 'example/ios/build/Build/Products/Release-iphonesimulator/GiphyReactNativeSdkExample.app',
build: 'yarn --cwd example build:ios',
launchArgs: {
ConnectHardwareKeyboard: true,
},
},
android: {
type: 'android.apk',
binaryPath: 'example/android/app/build/outputs/apk/release/app-release.apk',
build: 'yarn --cwd example build:android',
},
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: process.env.SIM_DEVICE_NAME,
},
},
emulator: {
type: 'android.emulator',
device: {
avdName: process.env.AVD_NAME,
},
utilBinaryPaths: ['./.temp/test-butler-app-2.2.1.apk'],
},
},
configurations: {
ios: {
device: 'simulator',
app: 'ios',
},
android: {
device: 'emulator',
app: 'android',
},
},
}