Skip to content

Commit

Permalink
Fix snapshot test on Windows
Browse files Browse the repository at this point in the history
Windows path delimiter mismatch.
  • Loading branch information
gaborcsardi committed Dec 11, 2024
1 parent 1094132 commit 5303285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/helper-apps.R
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ transform_tempdir <- function(x) {
"<tempdir>", x,
fixed = TRUE
)
x <- sub("\\R\\", "/R/", x, fixed = TRUE)
x <- sub("[\\\\/]file[a-zA-Z0-9]+", "/<tempfile>", x)
x <- sub("[A-Z]:.*Rtmp[a-zA-Z0-9]+[\\\\/]", "<tempdir>/", x)
x
Expand Down

0 comments on commit 5303285

Please sign in to comment.