a2r
Version:
A2R Framework
24 lines (23 loc) • 622 B
JavaScript
const testRegex = '(/test/.*|(\\.|/)(tests|spec))\\.(jsx?|js?|tsx?|ts?)$';
module.exports = {
testRegex,
transform: {
'^.+\\.jsx?$': require.resolve('babel-jest'),
'^.+\\.tsx?$': 'ts-jest',
},
collectCoverageFrom: [
"**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/.a2r/**",
"!**/dist/**",
"!**/test/mocks/**"
],
coverageReporters: ['text', 'lcov', 'json', 'html'],
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.jest.json',
},
},
};