2021-08-20 01:53:23 -05:00
|
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
testEnvironment: 'node',
|
2022-04-19 08:49:20 -05:00
|
|
|
setupFilesAfterEnv: ['./jest.setup.ts', 'jest-matcher-specific-error'],
|
|
|
|
globalSetup: './jest.global-setup.ts',
|
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
|
|
|
};
|