mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
5625b8838c
* chore(core,ui): coverage ignore src/__mocks__/ * chore(core): build excludes src/__mocks__/ * refactor(core): split mock.ts into __mocks__/*.ts
17 lines
546 B
JavaScript
17 lines
546 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/', '/src/__mocks__/'],
|
|
coverageReporters: ['text-summary', 'lcov'],
|
|
};
|