Skip to content

Commit d397ee6

Browse files
committed
Update Detox configuration and E2E test settings for improved stability
1 parent 43b1f67 commit d397ee6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/e2e-android.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
sudo udevadm trigger --name-match=kvm
6767
6868
- name: Unregister runners
69+
continue-on-error: true
6970
run: echo "[]" > ~/.local/share/Detox/device.registry.state.lock
7071

7172
- name: Get device name

example/.detoxrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
/** @type {Detox.DetoxConfig} */
22
module.exports = {
3+
behavior: {
4+
init: {
5+
reinstallApp: true,
6+
exposeGlobals: true,
7+
},
8+
launchApp: 'auto',
9+
cleanup: {
10+
shutdownDevice: true,
11+
},
12+
},
313
logger: {
414
level: process.env.CI ? 'debug' : undefined,
515
},

example/e2e/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
rootDir: '..',
44
testMatch: ['<rootDir>/e2e/**/*.test.js'],
5-
testTimeout: 120000,
5+
testTimeout: 1200000,
66
maxWorkers: 1,
77
globalSetup: 'detox/runners/jest/globalSetup',
88
globalTeardown: 'detox/runners/jest/globalTeardown',

example/e2e/starter.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ITBL_API_KEY, ITBL_ID } from '@env';
33

44
describe('Example', () => {
55
beforeAll(async () => {
6-
await detox.init();
6+
// await detox.init();
77
// await device.terminateApp();
88
await device.launchApp({
99
/**

0 commit comments

Comments
 (0)