tests/testthat/test-with_demo_project.R

test_that("with_demo_project errors informatively", {
  expect_snapshot(error = TRUE, {
    with_demo_project(1 + 1, dir = "unexisting-dir")
  })
})
cynkra/fledge documentation built on April 17, 2025, 3:56 a.m.