module.exports = { projects: [ { displayName: 'backend', preset: 'ts-jest', testEnvironment: 'node', roots: [__dirname], testMatch: ['/backend/**/*.spec.ts'], transform: { '^.+\\.ts$': ['ts-jest', { tsconfig: '/backend.tsconfig.json' }], }, }, { displayName: 'frontend', preset: 'ts-jest', testEnvironment: 'jsdom', roots: [__dirname], testMatch: ['/frontend/**/*.spec.ts'], transform: { '^.+\\.(ts|js|mjs)$': ['ts-jest', { tsconfig: '/frontend.tsconfig.json', useESM: false }], }, transformIgnorePatterns: [ '/node_modules/(?!(@angular|rxjs|tslib)/)', ], moduleNameMapper: { '^(\\.{1,2}/.*)\\.mjs$': '$1', }, setupFiles: ['/frontend/jest.setup.ts'], }, ], };