diff --git a/tests/testthat/helper-vdiffr.R b/tests/testthat/helper-vdiffr.R new file mode 100644 index 0000000..8c45b0f --- /dev/null +++ b/tests/testthat/helper-vdiffr.R @@ -0,0 +1,4 @@ +expect_doppelganger <- function(title, fig, path = NULL, ...) { + testthat::skip_if_not_installed("vdiffr") + vdiffr::expect_doppelganger(title, fig, path = path, ...) +}