Commit cc6abf3
committed
fix jest transpiling all node modules, make tests fast again
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
also the previous config was incomplete for moduleNameMapper but this was not
visible because it transformed everything anyway:
Jest encountered an unexpected token
Details:
/node_modules/ag-grid-community/styles/ag-grid.css:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){.ag-icon {
^
SyntaxError: Unexpected token '.'1 parent 4d043b7 commit cc6abf3
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments