Skip to content

Commit 6c4ca81

Browse files
committed
docs: update jest.config.js and test script inpackage.json
1 parent 8c0e40e commit 6c4ca81

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

email-api/jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ export default {
55
transform: {
66
"^.+\\.(t|j)sx?$": "@swc/jest",
77
},
8+
// Añadimos esta línea para ayudar a Jest a encontrar los módulos
9+
moduleDirectories: ['node_modules', 'src'],
810
transformIgnorePatterns: [
9-
"/node_modules/(?!(dompurify|jsdom|@exodus/bytes|html-encoding-sniffer|encoding-lite|abab|tr46|whatwg-url|data-urls|decimal.js)/)"
11+
// Esta expresión regular le dice a Jest: "Transforma todo lo que esté en node_modules EXCEPTO estas librerías"
12+
"/node_modules/(?!(dompurify|jsdom|@exodus/bytes|html-encoding-sniffer|encoding-lite|abab|tr46|whatwg-url|data-urls|decimal.js|saxes)/)"
1013
],
1114
moduleNameMapper: {
1215
'^(\\.{1,2}/.*)\\.js$': '$1',

email-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"dev": "node --watch --env-file=.env src/server.js",
66
"start": "node src/server.js",
7-
"test": "NODE_OPTIONS='--experimental-vm-modules' jest --detectOpenHandles --forceExit"
7+
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --no-cache --detectOpenHandles --forceExit"
88
},
99
"type": "module",
1010
"dependencies": {

0 commit comments

Comments
 (0)