Skip to content

Commit a90ac8b

Browse files
committed
fix: jest.setTimeout is not applied in an async call. See jestjs/jest#9359
1 parent 51fa631 commit a90ac8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/e2e.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const ZoneOffset = require('@js-joda/core').ZoneOffset
2121
// load .env values in the e2e folder, if any
2222
require('dotenv').config({ path: path.join(__dirname, '.env') })
2323

24+
jest.setTimeout(240000)
25+
2426
let sdkClient = {}
2527
let providerId = {}
2628
let provider = {}
@@ -39,7 +41,6 @@ const randomNumber = Math.round(Math.random() * 100000)
3941

4042
beforeAll(async () => {
4143
sdkClient = await sdk.init(orgId, apiKey, accessToken, httpOptions)
42-
jest.setTimeout(240000)
4344
jest.useRealTimers()
4445
})
4546

0 commit comments

Comments
 (0)