Skip to content

testthat 3.1.1 and empty lines in snapshots #1509

@maelle

Description

@maelle

With testthat 3.1.1 empty lines are removed from snapshots.

E.g. if a function is

bla <- function() {
  cli::cli_inform("thing")
  cli::cli_h2("bla")
  cli::cli_inform("another thing")
}

the snapshot will show no empty lines before and after the H2 whereas it used to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorsnapshot 📷

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions