diff --git a/jest.config.cjs b/jest.config.cjs index 3f4e5310aee4..92836f6f34c7 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -1,14 +1,14 @@ module.exports = { transform: { - '^.+\\.ts?$': 'ts-jest' + '^.+\\.tsx?$': 'ts-jest' }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], verbose: true, collectCoverage: true, coverageReporters: ['text', 'lcov', 'json-summary'], coverageDirectory: 'coverage', - collectCoverageFrom: ['scripts/**/*.js'], - coveragePathIgnorePatterns: ['scripts/compose.js'], + collectCoverageFrom: ['scripts/**/*.ts'], + coveragePathIgnorePatterns: ['scripts/compose.ts'], // To disallow netlify edge function tests from running testMatch: ['**/tests/**/*.test.*', '!**/netlify/**/*.test.*'], // Enable ES module support