tests/testthat/test-pkgload.R

test_that("load_all() errors if called recursively", {
  local_mocked_bindings(is_loading = function() TRUE)
  expect_snapshot(load_all(), error = TRUE)
})

Try the devtools package in your browser

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

devtools documentation built on March 14, 2026, 5:06 p.m.