Skip to content

Commit 6a45450

Browse files
committed
fix: remove redundant ESM option and expand transform patterns for jsdom dependencies
1 parent 2ead1b5 commit 6a45450

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

email-api/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ import 'dotenv/config';
22

33
export default {
44
testEnvironment: 'node',
5-
// ESTA LÍNEA ES LA CLAVE:
6-
extensionsToTreatAsEsm: ['.js'],
75
transform: {
86
"^.+\\.(t|j)sx?$": "@swc/jest",
97
},
108
transformIgnorePatterns: [
11-
"/node_modules/(?!(dompurify|jsdom|@exodus/bytes|html-encoding-sniffer|encoding-lite)/)"
9+
"/node_modules/(?!(dompurify|jsdom|@exodus/bytes|html-encoding-sniffer|encoding-lite|abab|tr46|whatwg-url|data-urls|decimal.js)/)"
1210
],
1311
moduleNameMapper: {
1412
'^(\\.{1,2}/.*)\\.js$': '$1',

email-api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
},
99
"type": "module",
1010
"dependencies": {
11-
"@sendgrid/mail": "^8.1.6",
1211
"bcrypt": "^6.0.0",
1312
"cors": "^2.8.5",
1413
"dompurify": "^3.3.3",

0 commit comments

Comments
 (0)