Skip to content

Commit dadeed6

Browse files
committed
chore: fix jest and tsconfig for Angular 21
1 parent 62ba365 commit dadeed6

4 files changed

Lines changed: 18751 additions & 23271 deletions

File tree

jest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import type { Config } from 'jest';
33
const jestConfig: Config = {
44
preset: 'jest-preset-angular',
55
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
6+
transform: {
7+
'^.+\\.(ts|mjs|js|html)$': [
8+
'jest-preset-angular',
9+
{
10+
tsconfig: '<rootDir>/tsconfig.spec.json',
11+
stringifyContentPathRegex: '\\.(html|svg)$',
12+
},
13+
],
14+
},
615
};
716

817
export default jestConfig;

0 commit comments

Comments
 (0)