tests/testthat/test-with_demo_project.R

test_that("with_demo_project errors informatively", {
  expect_snapshot_error(
    with_demo_project(1 + 1, dir = "unexisting-dir"),
    variant = rlang_version()
  )
})

Try the fledge package in your browser

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

fledge documentation built on May 29, 2024, 8:59 a.m.