Skip to content

expect_snapshot() doesn't capture some output anymore (>= 3.3.2)Β #2314

@etiennebacher

Description

@etiennebacher

expect_snapshot() doesn't capture some output anymore as of 3.3.2 and I don't see this documented in the changelog. I have this example:

tests/testthat/test-foo.R (this is the only test file)

test_that("my test", {
  expect_snapshot(tinytable::tt(mtcars[1, 1:2]))
})

With 3.3.1, it produces this snapshot:

# my test

    Code
      tinytable::tt(mtcars[1, 1:2])
    Output
      
      +-----+-----+
      | mpg | cyl |
      +=====+=====+
      | 21  | 6   |
      +-----+-----+ 

With 3.3.2, it produces this snapshot:

# my test

    Code
      tinytable::tt(mtcars[1, 1:2])

This change is surprising, is this expected? If so, it is worth mentioning in the changelog IMO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions