You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: