2021-08-20 14:53:23 +08:00
|
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
testEnvironment: 'node',
|
2022-02-17 14:21:29 +08:00
|
|
|
setupFilesAfterEnv: ['./jest.setup.js', 'jest-matcher-specific-error'],
|
2021-08-20 14:53:23 +08:00
|
|
|
globals: {
|
|
|
|
'ts-jest': {
|
|
|
|
tsconfig: 'tsconfig.test.json',
|
|
|
|
},
|
|
|
|
},
|
2021-08-30 11:30:54 +08:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
2022-02-15 18:36:57 +08:00
|
|
|
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
|
2021-08-30 11:30:54 +08:00
|
|
|
},
|
2022-01-10 10:04:00 +08:00
|
|
|
coveragePathIgnorePatterns: ['/node_modules/', '/build/'],
|
|
|
|
coverageReporters: ['text-summary', 'lcov'],
|
2021-08-20 14:53:23 +08:00
|
|
|
};
|