tests/testthat/setup.R

if (basename(getwd()) == "testthat" && basename(dirname(getwd())) == "tests") {
  withr::defer(testthat::snapshot_accept(path = "."), teardown_env())
}
r-lib/here documentation built on Dec. 11, 2024, 10:33 p.m.