tests/testthat/test-MemoryRouter.R

test_that("MemoryRouter renders with initialEntries", {
  skip_on_cran()

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

  about_text <- app$get_text("#memAbout")
  expect_true(grepl("memory about", about_text))
})

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.