File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments