import type { Config } from 'jest';
export default {
+ preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
+ testEnvironment: 'jsdom',
+ transform: {
+ '^.+\\.(ts|mjs|js|html)$': [
+ 'ts-jest',
+ {
+ tsconfig: '<rootDir>/tsconfig.spec.json',
+ stringifyContentPathRegex: '\\.html$',
+ },
+ ],
+ },
+ moduleFileExtensions: ['ts', 'html', 'js', 'json'],
} satisfies Config;
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
- "module": "CommonJS",
+ "module": "commonjs",
+ "esModuleInterop": true,
+ "target": "es2018",
"types": [
"jest"
]