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