From 47b6bd31f6aeef95790bfcb1264100586e3eb7bb Mon Sep 17 00:00:00 2001 From: Stalgia Grigg Date: Mon, 6 Nov 2023 15:54:42 -0800 Subject: [PATCH] jest.setTimeout outside of the beforeAll --- server/tests/integration/dataManagement.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/tests/integration/dataManagement.test.js b/server/tests/integration/dataManagement.test.js index 2af19a51b..e991431d5 100644 --- a/server/tests/integration/dataManagement.test.js +++ b/server/tests/integration/dataManagement.test.js @@ -3,9 +3,7 @@ const dbCleaner = require('../util/db-cleaner'); const { query, mutate } = require('../util/graphql-test-utilities'); const db = require('../../models'); -beforeAll(async () => { - jest.setTimeout(20000); -}); +jest.setTimeout(20000); afterAll(async () => { // Closing the DB connection allows Jest to exit successfully.