-
-
Notifications
You must be signed in to change notification settings - Fork 865
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
Jest 23.1 has regex issue on Windows #669
Comments
More fun in windows path normalization land! The good news is that the regex issue was fixed, and no longer causes jest to puke. The bad news is that it seems there is another issue in 23.3 (jestjs/jest#6576) where the testMatch paths provided by razzle, i.e. Is there a reason default razzle testMatch includes In the meantime this one is easy to work around by overriding testMatch in package.json. |
Compat with CRA |
I am having this issue as well with the default regex not finding tests. |
The exact workaround until Jest fixes it (and from all appearances the fix is coming soon), is to add this to your package.json:
Works On My Box™ |
Jest rolled back their version of micromatch, issue is fixed in Jest 23.4. Confirmed that fresh razzle app is finding tests again without any overriding. |
Regretfully I missed this somehow in testing the Jest 23.1 bump, but Jest 23 has issues with
a specific regex that's part of CRA: jestjs/jest#6385.
Razzle has the same regex:
razzle/packages/razzle/config/createJestConfig.js
Line 32 in 9a58a71
Seems like there are 3 options here:
The text was updated successfully, but these errors were encountered: