Debian Codegraph @

tests/testthat/test-scaffold.R

raw
1
2 test_that("renv.lock is created when scaffold is called", {
3 renv_tests_scope()
4 scaffold()
5 expect_true(file.exists("renv.lock"))
6 })
7
8 test_that("scaffold() accepts project settings", {
9 renv_tests_scope()
10 scaffold(settings = list(ignored.packages = "A"))
11 ignored <- settings$ignored.packages()
12 expect_identical(ignored, "A")
13 })