21 lines
457 B
JavaScript
21 lines
457 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
transform: {
|
|
'^.+\\.ts$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
|
|
},
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/*.spec.ts'],
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
clearMocks: true,
|
|
coverageThreshold: {
|
|
global: {
|
|
statements: 59,
|
|
branches: 50,
|
|
functions: 60,
|
|
lines: 62,
|
|
},
|
|
},
|
|
};
|