tests/testthat/test_dir/test-helper.R

# test that the companion helper script is sourced by test_dir
test_that("helper test", {
  expect_equal(hello(), "Hello World")
})
r-lib/testthat documentation built on Aug. 27, 2024, 2:44 a.m.