You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/ng-packs/jest.config.js

20 lines
538 B

module.exports = {
globals: {
'ts-jest': {
allowSyntheticDefaultImports: true,
},
},
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '<rootDir>/coverage',
coverageReporters: ['html'],
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/test-setup.ts', 'jest-canvas-mock'],
// snapshotSerializers: [
// 'jest-preset-angular/AngularSnapshotSerializer.js',
// 'jest-preset-angular/HTMLCommentSerializer.js',
// ],
};