2021-08-20 01:53:23 -05:00
|
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
testEnvironment: 'node',
|
2022-02-17 01:21:29 -05:00
|
|
|
setupFilesAfterEnv: ['./jest.setup.js', 'jest-matcher-specific-error'],
|
2022-04-20 01:14:37 -05:00
|
|
|
globalSetup: './jest.global-setup.js',
|
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-04-08 04:47:09 -05:00
|
|
|
coveragePathIgnorePatterns: ['/node_modules/', '/build/', '/src/__mocks__/'],
|
2022-01-09 21:04:00 -05:00
|
|
|
coverageReporters: ['text-summary', 'lcov'],
|
2021-08-20 01:53:23 -05:00
|
|
|
};
|