0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/core/jest.config.js
simeng-li 476de8d2ff
chore(core,ui): set jest config coverage report to all files (#4090)
set jest config coverage report to all files
2023-06-29 13:59:23 +08:00

17 lines
630 B
JavaScript

/** @type {import('jest').Config} */
const config = {
transform: {},
collectCoverageFrom: ['**/*.{js,ts}'],
coveragePathIgnorePatterns: ['/node_modules/', '/src/__mocks__/'],
coverageReporters: ['text-summary', 'lcov'],
coverageProvider: 'v8',
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;