For AI agents: the complete documentation index is available at https://rstest.rs/llms.txt, the full documentation bundle is available at https://rstest.rs/llms-full.txt, and this page is available as Markdown at https://rstest.rs/config/test/update.md.
close
  • English
  • update

    • Type: boolean
    • Default: false
    • CLI: -u, --update

    Update all changed snapshots, write missing snapshots, and delete obsolete snapshots during the test run. In Browser Mode, this also replaces mismatched screenshot references for toMatchScreenshot.

    By default (false), existing changed snapshots fail and obsolete snapshots are kept. Missing snapshots (including missing screenshot references) are still created automatically during local runs, whereas in CI environments missing snapshots fail unless update is enabled.

    In watch mode, you can also press u to trigger a snapshot update run.

    CLI
    rstest.config.ts
    npx rstest -u