-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
30 lines (30 loc) · 873 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
module.exports = {
roots: ['<rootDir>'],
// modulePaths: ['<rootDir>'],
moduleDirectories: ['node_modules'],
testEnvironment: 'node',
transform: {
'^.+\\.[t|j]s$': '@sucrase/jest-plugin',
// '^.+\\.ts$': '@swc/jest',
// '^.+\\.ts$': 'esbuild-jest',
},
// preset: 'ts-jest',
// verbose: true,
testRegex: '.[j,t]s$',
// coverageDirectory: '.coverage',
// coverageReporters: ['text', 'text-summary'],
// coverageThreshold: {
// global: { statements: 90, lines: 90, functions: 90 },
// },
moduleNameMapper: {
'common/(.*)': '<rootDir>/src/common/$1',
'modules/(.*)': '<rootDir>/src/modules/$1',
'resources/(.*)': '<rootDir>/src/resources/$1',
},
testPathIgnorePatterns: ['/build/', '/node_modules/', '/testFixture/'],
// globals: {
// 'ts-jest': {
// tsconfig: 'tests/tsconfig.json',
// },
// },
};