Skip to content

Commit 07846fc

Browse files
authored
test(scripts): expect the unmatched-pattern flag in the Astro check:changed test (#29839)
Co-authored-by: maria-rcks <[email protected]>
1 parent 30b9c4a commit 07846fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎scripts/check-changed.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,11 @@ it("lints an Astro component and runs knip when only it changed", () => {
414414
const result = project.run();
415415
expect(result.status, result.stdout + result.stderr).toBe(0);
416416
const calls = project.calls();
417-
expect(calls.find(({ args }) => args[0] === "lint")?.args).toEqual(["lint", page]);
417+
expect(calls.find(({ args }) => args[0] === "lint")?.args).toEqual([
418+
"lint",
419+
"--no-error-on-unmatched-pattern",
420+
page,
421+
]);
418422
expect(calls.some(({ args }) => args[0] === "exec" && args[1] === "knip")).toBe(true);
419423
});
420424

0 commit comments

Comments
 (0)