`expect_snapshot()` doesn't capture some output anymore (>= 3.3.2)
`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)
```r
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.
0 条评论