diff --git a/jest.config.cjs b/jest.config.cjs index 45416dd16122..3f4e5310aee4 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -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 + } + } };