mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
c8d45a13f0
* test(core): add middleware tests add middleware tests * fix(ut): fix typo fix typo
17 lines
527 B
JavaScript
17 lines
527 B
JavaScript
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
setupFilesAfterEnv: ['./jest.setup.js', 'jest-matcher-specific-error'],
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
|
|
},
|
|
coveragePathIgnorePatterns: ['/node_modules/', '/build/'],
|
|
coverageReporters: ['text-summary', 'lcov'],
|
|
};
|