From c5be6f0affe3b23422ccec7817a4c6ec325e979a Mon Sep 17 00:00:00 2001 From: Shazron Abdullah <36107+shazron@users.noreply.github.com> Date: Wed, 12 Jul 2023 12:52:42 +0800 Subject: [PATCH] fix: jest.setTimeout is not applied in an async call. See https://github.com/jestjs/jest/issues/9359 --- e2e/e2e.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e2e/e2e.js b/e2e/e2e.js index 0fae264..bf25ae1 100644 --- a/e2e/e2e.js +++ b/e2e/e2e.js @@ -21,9 +21,7 @@ const apiKey = process.env.ANALYTICS_APIKEY const token = process.env.ANALYTICS_TOKEN const rsid = process.env.ANALYTICS_RSID -beforeAll(async () => { - jest.setTimeout(240000) -}) +jest.setTimeout(240000) test('sdk init test', async () => { sdkClient = await sdk.init(company, apiKey, token)