Skip to content

Commit

Permalink
fix: jest.setTimeout is not applied in an async call. See jestjs/jest…
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Jul 12, 2023
1 parent 51fa631 commit a90ac8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const ZoneOffset = require('@js-joda/core').ZoneOffset
// load .env values in the e2e folder, if any
require('dotenv').config({ path: path.join(__dirname, '.env') })

jest.setTimeout(240000)

let sdkClient = {}
let providerId = {}
let provider = {}
Expand All @@ -39,7 +41,6 @@ const randomNumber = Math.round(Math.random() * 100000)

beforeAll(async () => {
sdkClient = await sdk.init(orgId, apiKey, accessToken, httpOptions)
jest.setTimeout(240000)
jest.useRealTimers()
})

Expand Down

0 comments on commit a90ac8b

Please sign in to comment.