Skip to content

Commit

Permalink
chore: enable ES module support in Jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed Dec 26, 2024
1 parent 5bba79d commit 84fa86c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ module.exports = {
collectCoverageFrom: ['scripts/**/*.js'],
coveragePathIgnorePatterns: ['scripts/compose.js'],
// To disallow netlify edge function tests from running
testMatch: ['**/tests/**/*.test.*', '!**/netlify/**/*.test.*']
testMatch: ['**/tests/**/*.test.*', '!**/netlify/**/*.test.*'],
// Enable ES module support
extensionsToTreatAsEsm: ['.ts', '.tsx'],
globals: {
'ts-jest': {
useESM: true
}
}
};

0 comments on commit 84fa86c

Please sign in to comment.