Result of .snapshot()
assertions in --update-snapshots
mode is inconsistent
#2636
Labels
bug
current functionality does not work as desired
help wanted
needs triage
scope:snapshot-management
What you're trying to do
Run AVA in
--update-snapshots
mode.What happened
Whether
t.snapshot()
assertions pass or fail depends on the state of other tests in the same file, and can differ between files.Specifically,
t.snapshot()
assertions always pass in--update-snapshots
mode, unless any test in their file istest.skip()
ed, in which case they pass or fail as they would without--update-snapshots
.What you expected to happen
I'd expect that, whatever the behavior of
t.snapshot()
assertions is here, it would be consistent, or at least not change as a result of changes to unrelated tests.This isn't a bug, precisely; the documentation doesn't specify whether snapshot assertions will or won't pass in these situations. It's just odd.
MRE.
AVA configuration: none.
AVA version: 3.14.0.
The text was updated successfully, but these errors were encountered: