Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix jest transpiling all node modules, make tests fast again #522

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

jonenst
Copy link
Contributor

@jonenst jonenst commented Jul 12, 2024

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 regex was incomplete (missing other files that need transforming) but this was not visible because it transformed everything anayway

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 regex was incomplete (missing other files that need transforming)
but this was not visible because it transformed everything anayway

use the same regex as gridstudy gridexplore for consistency...
@jonenst jonenst force-pushed the fixjesttransformallnodemodules branch from 330e7b2 to f07d86c Compare July 12, 2024 16:03
@jonenst jonenst merged commit 8383802 into main Jul 15, 2024
3 checks passed
@jonenst jonenst deleted the fixjesttransformallnodemodules branch July 15, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants