tests/testthat/test-UseRevalidator.R

test_that("useRevalidator() renders revalidation state", {
  skip_on_cran()

  app <- shinytest2::AppDriver$new(
    app_dir = testthat::test_path("test-apps", "UseRevalidator")
  )
  app$wait_for_idle()

  revalidator_state <- app$get_text("#revalidatorState")
  expect_equal(revalidator_state, "idle")
})

Try the reactRouter package in your browser

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

reactRouter documentation built on May 10, 2026, 5:07 p.m.