0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/core/jest.config.js

18 lines
527 B
JavaScript
Raw Normal View History

2021-08-20 01:53:23 -05:00
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./jest.setup.js', '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',
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
2021-08-29 22:30:54 -05:00
},
coveragePathIgnorePatterns: ['/node_modules/', '/build/'],
coverageReporters: ['text-summary', 'lcov'],
2021-08-20 01:53:23 -05:00
};