module.exports = { moduleFileExtensions: ['js', 'json', 'ts'], rootDir: 'src', testRegex: '.*\\.spec\\.ts$', transform: { '^.+\\.(t|j)s$': ['ts-jest', { isolatedModules: true }], }, collectCoverageFrom: ['**/*.(t|j)s'], coverageDirectory: '../coverage', testEnvironment: 'node', moduleNameMapper: { '^@config/(.*)$': '/config/$1', '^@modules/(.*)$': '/modules/$1', '^@shared/(.*)$': '/shared/$1', '^uuid$': 'uuid', '^@nestjs/websockets$': '/../__mocks__/@nestjs/websockets.ts', '^socket\\.io$': '/../__mocks__/socket.io.ts', '^web-push$': '/../__mocks__/web-push.ts', }, transformIgnorePatterns: [ 'node_modules/(?!(uuid)/)', ], coveragePathIgnorePatterns: [ '/node_modules/', '/dist/', '/__tests__/', '.module.ts', '.entity.ts', '.dto.ts', 'main.ts', 'index.ts', ], setupFilesAfterEnv: [], testTimeout: 10000, };