diff --git a/DESCRIPTION b/DESCRIPTION index 06a2b3c..183cb0e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: vdiffr Title: Visual Regression Testing and Graphical Diffing -Version: 1.0.1 +Version: 1.0.2 Authors@R: c( person("Lionel", "Henry", , "lionel@rstudio.com", c("cre", "aut")), person("Thomas Lin", "Pedersen", , "thomas.pedersen@rstudio.com", diff --git a/NEWS.md b/NEWS.md index 68849ea..29a0fcd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# vdiffr 1.0.1 +# vdiffr 1.0.2 * testthat no longer auto-deletes snapshot files that were not generated because of an unexpected error or a `skip()` diff --git a/R/expect-doppelganger.R b/R/expect-doppelganger.R index fbc00b3..ba0de5e 100644 --- a/R/expect-doppelganger.R +++ b/R/expect-doppelganger.R @@ -128,8 +128,8 @@ expect_doppelganger <- function(title, testthat::expect_snapshot_file( testcase, name = file, - binary = FALSE, - cran = cran + cran = cran, + compare = testthat::compare_file_text ), expectation_failure = function(cnd) { if (is_snapshot_stale(title, testcase)) { diff --git a/tests/testthat/test-expect-doppelganger.R b/tests/testthat/test-expect-doppelganger.R index b4b609c..c4e276a 100644 --- a/tests/testthat/test-expect-doppelganger.R +++ b/tests/testthat/test-expect-doppelganger.R @@ -47,7 +47,7 @@ test_that("stale snapshots are skipped", { return() } - cnd <- catch_cnd(expect_doppelganger(title, plot)) + cnd <- catch_cnd(expect_doppelganger(title, plot), "skip") expect_s3_class(cnd, "skip") file.remove(new_path) })