Skip to content

Commit 2644547

Browse files
committed
Deploying to gh-pages from @ 7346b09 πŸš€
1 parent ee20c59 commit 2644547

10 files changed

Lines changed: 21 additions & 15 deletions

File tree

β€Ždev/articles/mocking.htmlβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždev/articles/mocking.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function to mock.
292292
``` r
293293
unix_time <- function() unclass(Sys.time())
294294
unix_time()
295-
#> [1] 1763976292
295+
#> [1] 1763979017
296296
```
297297

298298
Now I’m going to create a function factory that makes it easy to compute
@@ -309,7 +309,7 @@ elapsed <- function() {
309309
timer <- elapsed()
310310
Sys.sleep(0.5)
311311
timer()
312-
#> [1] 0.5014899
312+
#> [1] 0.5020051
313313
```
314314

315315
Imagine trying to test this function without mocking! You’d probably

β€Ždev/articles/snapshotting.htmlβ€Ž

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždev/articles/snapshotting.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ test_that("generates actionable error message", {
386386
#> safe_write_lines(letters, path)
387387
#> Condition
388388
#> Error in `safe_write_lines()`:
389-
#> ! '/tmp/Rtmpmq6IE2/file26193629143' already exists.
389+
#> ! '/tmp/RtmpLkrFgo/file266168a15967' already exists.
390390
#> i Set `overwrite = TRUE` to overwrite
391391
#> Test passed with 1 success 🎊.
392392
```
@@ -402,8 +402,8 @@ test_that("generates actionable error message", {
402402
#> safe_write_lines(letters, path)
403403
#> Condition
404404
#> Error in `safe_write_lines()`:
405-
#> - ! '/tmp/Rtmpmq6IE2/file26193629143' already exists.
406-
#> + ! '/tmp/Rtmpmq6IE2/file261914c374d9' already exists.
405+
#> - ! '/tmp/RtmpLkrFgo/file266168a15967' already exists.
406+
#> + ! '/tmp/RtmpLkrFgo/file266126a73646' already exists.
407407
#> i Set `overwrite = TRUE` to overwrite
408408
#> * Run `testthat::snapshot_accept("snapshotting.Rmd")` to accept the change.
409409
#> * Run `testthat::snapshot_review("snapshotting.Rmd")` to review the change.

β€Ždev/news/index.htmlβ€Ž

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždev/news/index.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## testthat (development version)
44

5+
- Fixed support for `shinytest2::AppDriver$expect_values()` screenshot
6+
snapshot failing on CI
7+
([\#2293](https://github.com/r-lib/testthat/issues/2293),
8+
[\#2288](https://github.com/r-lib/testthat/issues/2288)).
9+
510
## testthat 3.3.0
611

712
CRAN release: 2025-11-13

β€Ždev/pkgdown.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ articles:
1111
special-files: special-files.html
1212
test-fixtures: test-fixtures.html
1313
third-edition: third-edition.html
14-
last_built: 2025-11-24T09:24Z
14+
last_built: 2025-11-24T10:09Z
1515
urls:
1616
reference: https://testthat.r-lib.org/reference
1717
article: https://testthat.r-lib.org/articles

β€Ždev/reference/expect_snapshot_file.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždev/reference/expect_snapshot_file.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ save_png <- function(code, width = 400, height = 400) {
129129
}
130130
path <- save_png(plot(1:5))
131131
path
132-
#> [1] "/tmp/RtmpsOxXPe/file18d961ad8814.png"
132+
#> [1] "/tmp/RtmpHDABvf/file190968a6ef4d.png"
133133

134134
if (FALSE) { # \dontrun{
135135
expect_snapshot_file(save_png(hist(mtcars$mpg)), "plot.png")

β€Ždev/search.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)