Skip to content

Commit 5cde082

Browse files
committed
tests - Stop looking for project at docs/smoke-all
1 parent 023e027 commit 5cde082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/smoke/smoke-all.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ for (const { path: fileName } of files) {
275275

276276
function findProjectDir(input: string): string | undefined {
277277
let dir = dirname(input);
278-
while (dir !== "" && dir !== ".") {
278+
// This is used for smoke-all tests and should stop there
279+
// to avoid side effect of _quarto.yml outside of Quarto tests folders
280+
while (dir !== "" && dir !== "." && /smoke-all$/.test(dir)) {
279281
const filename = ["_quarto.yml", "_quarto.yaml"].find((file) => {
280282
const yamlPath = join(dir, file);
281283
if (existsSync(yamlPath)) {

0 commit comments

Comments
 (0)