ghostfolio/apps/client/jest.config.js

19 lines
594 B
JavaScript
Raw Normal View History

2021-04-13 21:53:58 +02:00
module.exports = {
displayName: 'client',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
2021-07-04 21:31:15 +02:00
stringifyContentPathRegex: '\\.(html|svg)$'
2021-04-13 21:53:58 +02:00
}
},
coverageDirectory: '../../coverage/apps/client',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment'
2021-07-04 21:31:15 +02:00
],
transform: { '^.+\\.(ts|js|html)$': 'jest-preset-angular' }
2021-04-13 21:53:58 +02:00
};