diff --git a/tests/testthat/test-printing.R b/tests/testthat/test-printing.R index 697a4ca9d..fc9192061 100644 --- a/tests/testthat/test-printing.R +++ b/tests/testthat/test-printing.R @@ -119,8 +119,11 @@ withr::with_options( }) ) -test_that("print model with multiple components", { - skip_if_not_installed("mgcv") - m <- mgcv::gam(vs ~ s(mpg), data = mtcars, family = "binomial") - expect_snapshot(print(model_parameters(m))) -}) +withr::with_options( + list(parameters_warning_exponentiate = TRUE), + test_that("print model with multiple components", { + skip_if_not_installed("mgcv") + m <- mgcv::gam(vs ~ s(mpg), data = mtcars, family = "binomial") + expect_snapshot(print(model_parameters(m))) + }) +)