diff --git a/jest.config.js b/jest.config.js index 3bb24c7..e4caf70 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,14 +5,17 @@ module.exports = { globals: { 'ts-jest': { tsconfig: '/tsconfig.spec.json', - stringifyContentPathRegex: '\\.(html|svg)$' - } + stringifyContentPathRegex: '\\.(html|svg)$', + }, }, coverageDirectory: '../../coverage/libs/common-ui', snapshotSerializers: [ 'jest-preset-angular/build/serializers/no-ng-attributes', 'jest-preset-angular/build/serializers/ng-snapshot', - 'jest-preset-angular/build/serializers/html-comment' + 'jest-preset-angular/build/serializers/html-comment', ], - transform: { '^.+\\.(ts|js|html)$': 'jest-preset-angular' } + transform: { + '^.+.(ts|mjs|js|html)$': 'jest-preset-angular', + }, + transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'], };