We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b90afd7 commit 3d9ecd4Copy full SHA for 3d9ecd4
R/snapshot-reporter.R
@@ -92,7 +92,8 @@ SnapshotReporter <- R6::R6Class(
92
value_enc
93
)
94
if (fail_on_new) {
95
- return(fail(message, trace_env = trace_env))
+ fail(message, trace_env = trace_env)
96
+ return(NULL)
97
} else {
98
testthat_warn(message)
99
}
R/snapshot.R
@@ -331,6 +331,10 @@ expect_snapshot_helper <- function(
331
variant = variant,
332
trace_env = trace_env
333
334
+ # Comparison failed
335
+ if (is.null(comp)) {
336
+ return(invisible())
337
+ }
338
339
if (!identical(variant, "_default")) {
340
variant_lab <- paste0(" (variant '", variant, "')")
0 commit comments