2021-08-18 06:57:59 +02:00
|
|
|
const ignores = ['/node_modules/', '__mocks__'];
|
|
|
|
|
|
|
|
module.exports = {
|
2021-08-21 01:39:54 +02:00
|
|
|
collectCoverageFrom: ['src/lib/app.ts'],
|
2021-08-18 06:57:59 +02:00
|
|
|
testMatch: ['**/test/**/*.spec.+(ts|tsx|js)'],
|
|
|
|
testPathIgnorePatterns: [...ignores],
|
|
|
|
coveragePathIgnorePatterns: [...ignores, 'src/(umd|cjs|esm)-entry.js$'],
|
|
|
|
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
|
|
|
|
coverageDirectory: './coverage',
|
|
|
|
coverageThreshold: {
|
|
|
|
global: {
|
|
|
|
branches: 80,
|
|
|
|
functions: 100,
|
|
|
|
lines: 100,
|
|
|
|
statements: 100,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js'],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.(ts|tsx)$': 'ts-jest',
|
|
|
|
},
|
|
|
|
verbose: true,
|
|
|
|
setupFilesAfterEnv: ['./jest.setup.js'],
|
|
|
|
};
|