-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Bug]: Jest cannot run tests in Sapling repos with invalid JSON backups #13673
Comments
FYI this bug would probably also happen if you did mkdir .aoeu
echo yourmom > .aoeu/package.json but I encountered this with Sapling. I should probably update the Issue title to be more general |
workaround: deleting the corrupted |
Summary: Ignore `.sl` directories in HasteMap. This will allow Sapling to be used with jest projects Test Plan: `packages/jest-haste-map/src/__tests__/index.test.js` similar testing plan to what's in jestjs#13673 Closes jestjs#13673
@SimenB Do you think it's a bug that an invalid JSON file name If I'm working on a JSON validator and I have a few test files that are invalid I could not use Jest It's worth thinking about better workarounds than deleting those files |
adding the invalid files to an ignore pattern seems fine if you want them? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
41bf230 (main)
Steps to reproduce
Expected behavior
expected: tests pass successfully
Actual behavior
actual:
Additional context
I have tested this on multiple versions of jest
Environment
The text was updated successfully, but these errors were encountered: