tests/testthat/test-zzz.R

test_that("tests don't write to styler-perm", {
  skip_on_cran()
  expect_false(file_exists(
    fs::path(R.cache::getCacheRootPath(), "styler-perm")
  ))
})

Try the precommit package in your browser

Any scripts or data that you put into this service are public.

precommit documentation built on July 2, 2022, 1:06 a.m.