-
Notifications
You must be signed in to change notification settings - Fork 230
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/no-large-snapshots doesn't work on external snap files #1353
Labels
Comments
Would you mind putting together a small self-contained repo reproducing the issue? |
🎉 This issue has been resolved in version 27.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After configuring the jest/no-large snapshots rule, errors are only being raised for inline snapshots, not for external snapshot files.
Rule configuration:
I have tried creating a new react app with typescript via CRA and configuring this rule in a clean application. It is detecting inline snapshot violations of the rule but no error is raised for separate .snap files.
I have followed the documentation adding the relevant plugins and set the ecmaVersion to latest.
The example uses the out of the box App.test.tsx / App.test.tsx.snap.
Snapshot test - App.test.tsx
Snapshot file contents - App.test.tsx.snap
Any advice or support would be appreciated.
The text was updated successfully, but these errors were encountered: