snapshot_accept() accepts all changed snapshots.

snapshot_accept(files = NULL, path = "tests/testthat")

Arguments

files

Test files to accept snapshots for. Can be full path to test (tests/testthat/test-foo.R), file name (test-foo.R), or test name (foo).

Default, NULL, accepts all snapshots.

path

Path to tests