Skip to content

Commit

Permalink
fix jest transpiling all node modules, make tests fast again
Browse files Browse the repository at this point in the history
the previous regexp is bugged, it requires '//' in the filename !!
As a result, all the files in node_modules don't pass the regex
so nothing is ignored => everything is transformed

jest caches this in /tmp/jest_* so rerunning tests is fast, but
the first time jest takes minutes to transform everything
  • Loading branch information
jonenst committed Jul 12, 2024
1 parent 4d043b7 commit 247c82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"\\.svg": "<rootDir>/src/__mocks__/svgrMock.js"
},
"transformIgnorePatterns": [
"node_modules/(?!@gridsuite/commons-ui)/"
"node_modules/(?!@gridsuite/commons-ui)"
]
},
"eslintConfig": {
Expand Down

0 comments on commit 247c82b

Please sign in to comment.