forked from intellectronica/ruler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
16 lines (16 loc) · 854 Bytes
/
Copy pathjest.config.js
File metadata and controls
16 lines (16 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.{test,spec}.ts', '**/*.test.ts'],
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
coverageDirectory: 'coverage',
// Build the project once before all tests run to prevent race conditions
globalSetup: './jest.setup.js',
// CI environments can be slower, especially for integration tests that invoke a build
// step (e.g. `npm run build`) before running assertions. The default Jest timeout of
// 5 seconds is sometimes not enough, which leads to flaky failures in the pipeline
// even though the tests pass locally. Increase the default timeout to make the CI
// more robust while still keeping developers aware of excessively long-running tests.
testTimeout: 30000,
};