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 snapshot.

    When update is enabled, Rstest will update all changed snapshots and delete obsolete ones.

    It should be noted that when you test in local, the newly added snapshot will be automatically updated regardless of whether the update configuration is enabled.

    CLI
    rstest.config.ts
    npx rstest -u