packages/react/jest.config.js
Rama main · réplica de lectura del repositorio original.
module.exports = {
testEnvironment: 'jest-environment-jsdom',
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect', '<rootDir>/test/setupTests.ts'],
testMatch: ['**/?(*.)test.ts?(x)'],
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json',
diagnostics: false,
},
},
testEnvironment: 'node',
moduleNameMapper: { '^src/(.*)$': '<rootDir>/src/$1' },
preset: 'ts-jest',
coveragePathIgnorePatterns: ['/node_modules/', '/test/'],
coverageThreshold: {
global: {
branches: 25,
functions: 25,
lines: 25,
statements: 25,
},
},
collectCoverage: true,
};