/** @type {import('jest').Config} */ const config = { verbose: true, transform: { '^.+\\.m?[tj]sx?$': ['ts-jest'], }, testMatch: [ '/src/**/__tests__/**/*.ts?(x)', '/(test|src)/**/*(*.)@(spec|test).ts?(x)', '/test/**/*.(test|spec).(js|jsx|ts|tsx)', ], clearMocks: true, collectCoverage: true, coverageReporters: ['json', 'lcov', 'clover', 'cobertura', 'text'], coverageDirectory: 'coverage', coveragePathIgnorePatterns: ['/node_modules/'], testPathIgnorePatterns: ['/node_modules/'], watchPathIgnorePatterns: ['/node_modules/'], reporters: [ 'default', [ 'jest-junit', { outputDirectory: 'test-reports', }, ], ], preset: 'ts-jest/presets/default-legacy', }; module.exports = config;