Skip to content

Commit 1aefde4

Browse files
committed
make sure vdiffr doesn't break with old versions of testthat
1 parent e2b0314 commit 1aefde4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/helper-vdiffr.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# VDIFFR_RUN_TESTS is explicitly set to "true", which should be the case only on
33
# a GitHub Actions CI runner with stable version of R.
44

5-
if (requireNamespace("vdiffr", quietly = TRUE)) {
5+
if (requireNamespace("vdiffr", quietly = TRUE) && utils::packageVersion('testthat') >= '3.0.3') {
66
expect_doppelganger <- vdiffr::expect_doppelganger
77
} else {
88
# If vdiffr is not available and visual tests are explicitly required, raise error.

0 commit comments

Comments
 (0)