diff --git a/packages/server/src/tests/jestSetup.ts b/packages/server/src/tests/jestSetup.ts index 9b6036467d..d87ccbfe7c 100644 --- a/packages/server/src/tests/jestSetup.ts +++ b/packages/server/src/tests/jestSetup.ts @@ -10,7 +10,9 @@ if (!process.env.DEBUG) { if (!process.env.CI) { // set a longer timeout in dev for debugging // 100 seconds - jest.setTimeout(100000) + jest.setTimeout(100 * 1000) +} else { + jest.setTimeout(10 * 1000) } testContainerUtils.setupEnv(env, coreEnv) diff --git a/packages/worker/src/tests/jestSetup.ts b/packages/worker/src/tests/jestSetup.ts index 790f942a30..2deef96176 100644 --- a/packages/worker/src/tests/jestSetup.ts +++ b/packages/worker/src/tests/jestSetup.ts @@ -18,7 +18,9 @@ if (!process.env.DEBUG) { if (!process.env.CI) { // set a longer timeout in dev for debugging // 100 seconds - jest.setTimeout(100000) + jest.setTimeout(100 * 1000) +} else { + jest.setTimeout(10 * 1000) } testContainerUtils.setupEnv(env, coreEnv)