mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
42 lines
902 B
JavaScript
42 lines
902 B
JavaScript
|
export default {
|
||
|
collectCoverage: true,
|
||
|
collectCoverageFrom: [
|
||
|
'js/**/*.{js,ts}',
|
||
|
],
|
||
|
coveragePathIgnorePatterns: [
|
||
|
'/node_modules/',
|
||
|
'/.*\\.test\\.ts$',
|
||
|
'.*\\.d\\.ts$',
|
||
|
],
|
||
|
coverageDirectory: '<rootDir>/coverage/',
|
||
|
coverageThreshold: {
|
||
|
global: {
|
||
|
statements: 0,
|
||
|
branches: 0,
|
||
|
functions: 0,
|
||
|
lines: 0,
|
||
|
},
|
||
|
'./js/utils/**/*.js': {
|
||
|
statements: 100,
|
||
|
branches: 100,
|
||
|
functions: 100,
|
||
|
lines: 100,
|
||
|
},
|
||
|
},
|
||
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
||
|
setupFilesAfterEnv: ['<rootDir>/test/jest-setup.ts'],
|
||
|
testEnvironment: 'jsdom',
|
||
|
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
||
|
moduleNameMapper: {
|
||
|
'./js/(.*)': '<rootDir>/js/$1',
|
||
|
},
|
||
|
transform: {},
|
||
|
globals: {
|
||
|
extensionsToTreatAsEsm: ['.ts', '.js'],
|
||
|
'ts-jest': {
|
||
|
tsconfig: '<rootDir>/tsconfig.json',
|
||
|
useESM: true,
|
||
|
},
|
||
|
},
|
||
|
};
|