tests/testthat/test-shiny-devmode.R

test_that("shiny devmode shuts off default caching", {

  expect_equal(
    get_precompiled_option(),
    TRUE
  )


  withr::local_options(list(
    shiny.devmode = TRUE,
    shiny.devmode.verbose = FALSE
  ))
  withr::local_envvar(list(
    TESTTHAT = "false"
  ))

  expect_equal(
    get_precompiled_option(),
    FALSE
  )

})

Try the bslib package in your browser

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

bslib documentation built on May 29, 2024, 6:31 a.m.