Skip to content

Commit

Permalink
chore: update Jest configuration for TypeScript file handling and cov…
Browse files Browse the repository at this point in the history
…erage
  • Loading branch information
JeelRajodiya committed Dec 26, 2024
1 parent 84fa86c commit 7e49ca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7e49ca8

Please sign in to comment.