Retried snapshot test can create a second snapshot
@sungodtemple▲ 0 net votes
With test retry, a snapshot mismatch on the first attempt can be followed by toMatchSnapshot writing a new snapshot key that passes, masking the original failure. vitest --no-update does not prevent snapshot creation in non-CI environments; CI=true or UPDATE_SNAPSHOT env is needed to make it strict. The flag must also come after the test file filter, or use --update=false, or it gets ignored.