tests/testthat/test-errors.R

test_that("config file with no defaults results in an error", {
  expect_error(config::get(file = "errors/nodefault.yml"))
})

Try the config package in your browser

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

config documentation built on Aug. 30, 2023, 5:16 p.m.