mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1/** @type {Detox.DetoxConfig} */
2module.exports = {
3 testRunner: {
4 args: {
5 $0: 'jest',
6 config: '__e2e__/jest.config.js',
7 },
8 jest: {
9 setupTimeout: 120000,
10 },
11 },
12 apps: {
13 'ios.debug': {
14 type: 'ios.app',
15 binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/bluesky.app',
16 build:
17 'xcodebuild -workspace ios/Bluesky.xcworkspace -scheme Bluesky -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
18 },
19 'ios.release': {
20 type: 'ios.app',
21 binaryPath:
22 'ios/build/Build/Products/Release-iphonesimulator/bluesky.app',
23 build:
24 'xcodebuild -workspace ios/Bluesky.xcworkspace -scheme Bluesky -configuration Release -sdk iphonesimulator -derivedDataPath ios/build',
25 },
26 'android.debug': {
27 type: 'android.apk',
28 binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk',
29 build:
30 'cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -',
31 reversePorts: [8081],
32 },
33 'android.release': {
34 type: 'android.apk',
35 binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
36 build:
37 'cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -',
38 },
39 },
40 devices: {
41 simulator: {
42 type: 'ios.simulator',
43 device: {
44 type: 'iPhone 14',
45 },
46 },
47 attached: {
48 type: 'android.attached',
49 device: {
50 adbName: '.*',
51 },
52 },
53 emulator: {
54 type: 'android.emulator',
55 device: {
56 avdName: 'Pixel_3a_API_30_x86',
57 },
58 },
59 },
60 configurations: {
61 'ios.sim.debug': {
62 device: 'simulator',
63 app: 'ios.debug',
64 },
65 'ios.sim.release': {
66 device: 'simulator',
67 app: 'ios.release',
68 },
69 'android.att.debug': {
70 device: 'attached',
71 app: 'android.debug',
72 },
73 'android.att.release': {
74 device: 'attached',
75 app: 'android.release',
76 },
77 'android.emu.debug': {
78 device: 'emulator',
79 app: 'android.debug',
80 },
81 'android.emu.release': {
82 device: 'emulator',
83 app: 'android.release',
84 },
85 },
86}