Skip to content

Commit

Permalink
Update Detox configuration and E2E test settings for improved stability
Browse files Browse the repository at this point in the history
  • Loading branch information
lposen committed Oct 18, 2024
1 parent 43b1f67 commit d397ee6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
sudo udevadm trigger --name-match=kvm
- name: Unregister runners
continue-on-error: true
run: echo "[]" > ~/.local/share/Detox/device.registry.state.lock

- name: Get device name
Expand Down
10 changes: 10 additions & 0 deletions example/.detoxrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
/** @type {Detox.DetoxConfig} */
module.exports = {
behavior: {
init: {
reinstallApp: true,
exposeGlobals: true,
},
launchApp: 'auto',
cleanup: {
shutdownDevice: true,
},
},
logger: {
level: process.env.CI ? 'debug' : undefined,
},
Expand Down
2 changes: 1 addition & 1 deletion example/e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module.exports = {
rootDir: '..',
testMatch: ['<rootDir>/e2e/**/*.test.js'],
testTimeout: 120000,
testTimeout: 1200000,
maxWorkers: 1,
globalSetup: 'detox/runners/jest/globalSetup',
globalTeardown: 'detox/runners/jest/globalTeardown',
Expand Down
2 changes: 1 addition & 1 deletion example/e2e/starter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ITBL_API_KEY, ITBL_ID } from '@env';

describe('Example', () => {
beforeAll(async () => {
await detox.init();
// await detox.init();
// await device.terminateApp();
await device.launchApp({
/**
Expand Down

0 comments on commit d397ee6

Please sign in to comment.