You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error location for snapshot tests with error = TRUE #1280
───────────────────────────────────────────────────────
Failure (snapshot.R:67:5): output test
`{ ... }` threw an unexpected error.
Message: `x` must not have more than one dimension. `length(dim(x))` must be zero or one, not 4.
Class: tibble_error_enframe_has_dim/tibble_error/rlang_error/error/condition
Backtrace:
1. tibble::enframe(Titanic)
───────────────────────────────────────────────────────
The snapshot.R:67:5 is not particularly helpful here.
Activity
krlmlr commentedon Dec 13, 2020
Tibble had code of the form
test_that("desc", expect_snapshot({ }))TIL this is a bad idea (and why), the pull request adds a warning.
Require braces in test_that() (#1281)