Updating snapshots

edit

When a snapshot does not match, the test fails, the new content is written to an .actual file next to the verified file, and the failure message lists the files that changed, appeared or disappeared. Review the difference, then either fix the code or approve the new snapshot. There are three ways to approve:

The default strategy, Disallow, never changes a verified file: you approve with the tool. Whatever the strategy, snapshots are never updated on a build server, in a continuous testing runner or when the tests are run by an LLM agent. See Continuous integration.