-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (34 loc) · 1.06 KB
/
Copy pathjest.config.js
File metadata and controls
35 lines (34 loc) · 1.06 KB
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
35
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
coverageDirectory: '<rootDir>/tests/coverage',
coveragePathIgnorePatterns: ['<rootDir>/node_modules/', 'index.ts'],
coverageReporters: ['html', 'lcov', 'text'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
moduleDirectories: ['node_modules', 'src'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'^@app/(.*)$': '<rootDir>/src/$1',
},
preset: 'ts-jest',
roots: ['<rootDir>/src/', '<rootDir>/tests/'],
setupFilesAfterEnv: ['<rootDir>/tests/setup.jest.ts'],
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules/', 'index.ts'],
transform: {
'^.+\\.js$': 'ts-jest',
'^.+\\.ts': ['ts-jest', { tsconfig: 'tsconfig.jest.json' }],
},
transformIgnorePatterns: [
'node_modules/(?!(@noble/ciphers|@noble/curves|@noble/hashes)/)',
],
verbose: true,
};
module.exports = config;