Skip to content

Commit 4fe76fa

Browse files
committed
Ensure test doesn't fail if in different dir
1 parent 1ab8366 commit 4fe76fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-snapshot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ test_that("errors and warnings are folded", {
166166
# })
167167

168168
test_that("hint is informative", {
169-
withr::local_envvar("GITHUB_ACTIONS" = "false")
169+
withr::local_envvar(GITHUB_ACTIONS = "false", TESTTHAT_WD = NA)
170170

171171
expect_snapshot({
172172
cat(snapshot_accept_hint("_default", "bar.R", reset_output = FALSE))

0 commit comments

Comments
 (0)