tests/testthat/test-knitr.R

test_that("checks input type", {
  hook <- vcr_hook("", withr::local_tempdir())

  expect_snapshot(error = TRUE, {
    hook(TRUE, list(cassette = 1))
  })
})

Try the vcr package in your browser

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

vcr documentation built on Aug. 8, 2025, 6:45 p.m.