Skip to content

Commit d3de1dc

Browse files
committed
Add a check to debug
1 parent 93269ce commit d3de1dc

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tests/testthat/test-utils-projects.R

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,17 @@ test_that("project_path() uses Quarto environment variables", {
3434
QUARTO_PROJECT_ROOT = "",
3535
QUARTO_PROJECT_DIR = xfun::normalize_path(file.path(temp_dir, "project"))
3636
),
37-
expect_identical(
38-
project_path("data", "file.csv"),
39-
file.path("project", "data", "file.csv")
40-
)
37+
{
38+
expect_identical(
39+
get_running(),
40+
xfun::normalize_path(file.path(temp_dir, "project"))
41+
)
42+
43+
expect_identical(
44+
project_path("data", "file.csv"),
45+
file.path("project", "data", "file.csv")
46+
)
47+
}
4148
)
4249
})
4350

0 commit comments

Comments
 (0)