From bee460eb7540d3ffba1dc60fadf3419cdf8a2dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 12 Feb 2018 14:02:32 +0100 Subject: [PATCH] Docs: Use jest.setTimeout instead of jasmine timeout (#562) * 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 --- docs/Guide.Jest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Guide.Jest.md b/docs/Guide.Jest.md index ab5bda5bd8..7f82bbcee3 100644 --- a/docs/Guide.Jest.md +++ b/docs/Guide.Jest.md @@ -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);