-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
34 lines (34 loc) · 889 Bytes
/
jest.config.cjs
File metadata and controls
34 lines (34 loc) · 889 Bytes
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
34
module.exports = {
verbose: true,
rootDir: '.',
roots: ['<rootDir>/src', '<rootDir>/test'],
testMatch: ['**/test/*spec.+(ts)', '**/test/**/*spec.+(ts)'],
collectCoverage: true,
coverageThreshold: {
global: {
branches: 60,
functions: 60,
lines: 60,
statements: 60,
},
},
coveragePathIgnorePatterns: ['./node_modules/', './tests/', './debug', './build'],
coverageReporters: ['json-summary', 'text', 'lcov'],
transform: {
'^.+\\.(mt|t|cj|j)s$': [
'babel-jest',
{
configFile: './babel.jest.json',
},
],
},
transformIgnorePatterns: ['node_modules/(?!(@noble|@scure)/)'],
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
moduleNameMapper: {
'@/(.*)\\.js': '<rootDir>/src/$1',
'#/(.*)\\.js': '<rootDir>/tests/$1',
'@/(.*)': '<rootDir>/src/$1',
'#/(.*)': '<rootDir>/tests/$1',
},
moduleDirectories: ['node_modules', '<rootDir>/src'],
};