-
Notifications
You must be signed in to change notification settings - Fork 22
/
jest.config.js
33 lines (31 loc) · 842 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const inspector = require('inspector');
// If we are debugging then extend the timeout to max value, otherwise use the default.
const testTimeout = inspector.url() ? 1e8 : undefined;
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': '@swc/jest',
},
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
collectCoverage: true,
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100,
},
},
// setupFilesAfterEnv: ['<rootDir>/test/unit/utils/awsSetup.js'],
coveragePathIgnorePatterns: ['<rootDir>/test/', '/node_modules/'],
clearMocks: true,
resetMocks: true,
restoreMocks: true,
testMatch: [
'<rootDir>/test/unit/**/*.test.js',
'<rootDir>/test/unit/**/*.test.ts',
],
verbose: true,
maxWorkers: 1,
testTimeout,
};