mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
15 lines
546 B
JavaScript
15 lines
546 B
JavaScript
|
/** @type {import('jest').Config} */
|
||
|
const config = {
|
||
|
coveragePathIgnorePatterns: ['/node_modules/', '/src/__mocks__/'],
|
||
|
coverageReporters: ['text-summary', 'lcov'],
|
||
|
testPathIgnorePatterns: ['/node_modules/', '/build/routes/session/'], // `routes/session` is freezed
|
||
|
setupFilesAfterEnv: ['jest-matcher-specific-error', './jest.setup.js'],
|
||
|
roots: ['./build'],
|
||
|
moduleNameMapper: {
|
||
|
'^#src/(.*)\\.js(x)?$': '<rootDir>/build/$1',
|
||
|
'^(chalk|inquirer)$': '<rootDir>/../shared/lib/esm/module-proxy.js',
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default config;
|