Skip to content

Error condition provided by expect_snapshot seems buggy in 3.3.0 #2286

@eitsupi

Description

@eitsupi
testthat::expect_snapshot(stop("error"), error = TRUE, cnd = TRUE)
── Snapshot ─────────────────────────────────────────────────────────────────────────────────────────
ℹ Can't save or compare to reference when testing interactively.
Code
  stop("error")
Condition <rlang_error>
  Error:
  ! error
─────────────────────────────────────────────────────────────────────────────────────────────────────

The condition seems changed to rlang_error in 3.3.0.

Found in pola-rs/r-polars#1642.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions