tests/testthat/setup.R

webmockr::enable()
webmockr::httr_mock()

# Run cleanup after all tests
withr::defer(stub_registry_clear(), teardown_env())

# Set up global test values
#example: assign("armadillo_url", "https://test.nl/", envir = .pkgglobalenv)
lifecycle-project/ds-helper documentation built on Oct. 27, 2023, 2:08 p.m.