Skip to content

Commit 0a1f2d8

Browse files
committed
test(jest): increase minimum timeout to 5 minutes
1 parent bf0a088 commit 0a1f2d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jest.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import { assertEnvironment, moduleExport } from '@-xun/symbiote/assets/jest.conf
99

1010
/*const debug = createDebugLogger({ namespace: 'symbiote:config:jest' });*/
1111

12+
const environment = assertEnvironment();
13+
1214
const config = deepMergeConfig(
13-
moduleExport({ derivedAliases: getJestAliases(), ...assertEnvironment() }),
15+
moduleExport({ derivedAliases: getJestAliases(), ...environment }),
1416
/**
1517
* @type {import('@-xun/symbiote/assets/jest.config.mjs').JestConfig}
1618
*/
1719
{
18-
// Any custom configs here will be deep merged with moduleExport's result
20+
testTimeout: 1000 * 60 * (environment.isDebugging ? 60 * 24 : 10)
1921
}
2022
);
2123

0 commit comments

Comments
 (0)