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
Some projects define tests in a way that trips up the static analysis used to tie test cases to snapshots, causing active snapshots to be incorrectly marked as redundant. My project uses a wrapper around it(). #1 is another example of such a configuration.
A simple work-around that would help me a lot is the ability to turn off the "The snapshot is redundant" warnings. That way, at least you don't get false positive warnings.
The text was updated successfully, but these errors were encountered:
Hello, looks like you're using snapshot-tools VS code extension.
If your project uses Typescript you can get rid off the vscode extension and use the TS language plugin instead (this repo). It doesn't have any validation.
I also have plan to replace snapshot-tools extension with bundled TS plugin. Give me a few days.
Some projects define tests in a way that trips up the static analysis used to tie test cases to snapshots, causing active snapshots to be incorrectly marked as redundant. My project uses a wrapper around
it()
. #1 is another example of such a configuration.A simple work-around that would help me a lot is the ability to turn off the "The snapshot is redundant" warnings. That way, at least you don't get false positive warnings.
The text was updated successfully, but these errors were encountered: