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-cs-functions documentation built on Nov. 18, 2024, 3:36 p.m.