Skip to content

Commit

Permalink
Improve jest timeouts management used by test/example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed Dec 31, 2019
1 parent d599677 commit 2441085
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions detox/test/e2e/init-circus.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ detoxCircus.getEnv().addEventsListener(assignReporter);
detoxCircus.getEnv().addEventsListener(specReporter);

// Set the default timeout
jest.setTimeout(300000);
jest.setTimeout(120000);

beforeAll(async () => {
await detox.init(config);
});
}, 300000);

beforeEach(async () => {
await adapter.beforeEach();
Expand Down
4 changes: 2 additions & 2 deletions detox/test/e2e/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jasmine.getEnv().addReporter(specReporter);
jasmine.getEnv().addReporter(assignReporter);

// Set the default timeout
jest.setTimeout(360000);
jest.setTimeout(120000);

beforeAll(async () => {
await detox.init(config);
});
}, 300000);

beforeEach(async () => {
await adapter.beforeEach();
Expand Down
4 changes: 2 additions & 2 deletions examples/demo-react-native-jest/e2e/init-circus.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ detoxCircus.getEnv().addEventsListener(assignReporter);
detoxCircus.getEnv().addEventsListener(specReporter);

// Set the default timeout
jest.setTimeout(300000);
jest.setTimeout(90000);

beforeAll(async () => {
await detox.init(config);
});
}, 300000);

beforeEach(async () => {
await adapter.beforeEach();
Expand Down
8 changes: 4 additions & 4 deletions examples/demo-react-native-jest/e2e/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ const adapter = require('detox/runners/jest/adapter');
const specReporter = require('detox/runners/jest/specReporter');
const assignReporter = require('detox/runners/jest/assignReporter');

// Set the default timeout
jest.setTimeout(300000);

jasmine.getEnv().addReporter(adapter);

// This takes care of generating status logs on a per-spec basis. By default, jest only reports at file-level.
Expand All @@ -17,9 +14,12 @@ jasmine.getEnv().addReporter(specReporter);
// This is strictly optional.
jasmine.getEnv().addReporter(assignReporter);

// Set the default timeout
jest.setTimeout(90000);

beforeAll(async () => {
await detox.init(config);
});
}, 300000);

beforeEach(async () => {
await adapter.beforeEach();
Expand Down

0 comments on commit 2441085

Please sign in to comment.