Skip to content

Commit

Permalink
Docs: Use jest.setTimeout instead of jasmine timeout (#562)
Browse files Browse the repository at this point in the history
* Use jest.setTimeout instead of jasmine timeout

Since jest@20 or so [jest.setTimeout](https://facebook.github.io/jest/docs/en/jest-object.html#jestsettimeouttimeout) is available, instead of jasmine-specific timeout constant.

* Adjust commit

* Adjust wording
  • Loading branch information
thymikee authored and rotemmiz committed Feb 12, 2018
1 parent f20d0b5 commit bee460e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Guide.Jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ You should remove `e2e/mocha.opts`, you no longer need it.
const detox = require('detox');
const config = require('../package.json').detox;

// Set the default timeout
jasmine.DEFAULT_TIMEOUT_INTERVAL = 120000;
// Set the default test timeout of 120s
jest.setTimeout(120000);

beforeAll(async () => {
await detox.init(config);
Expand Down

0 comments on commit bee460e

Please sign in to comment.