From c424ca55fd39e7e3d64ed09d503423f2a92f3996 Mon Sep 17 00:00:00 2001 From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Date: Mon, 2 Nov 2026 17:51:18 -0800 Subject: [PATCH] test(scripts): expect check:changed's unmatched-pattern lint flag for Astro files Co-Authored-By: Claude Opus 5.5 --- scripts/check-changed.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/check-changed.test.ts b/scripts/check-changed.test.ts index 6c6cd8bf215f3..17c9b2b4bb2ee 100644 --- a/scripts/check-changed.test.ts +++ b/scripts/check-changed.test.ts @@ -414,7 +414,11 @@ it("lints an Astro component and runs knip when only it changed", () => { const result = project.run(); expect(result.status, result.stdout + result.stderr).toBe(0); const calls = project.calls(); - expect(calls.find(({ args }) => args[0] === "lint")?.args).toEqual(["lint", page]); + expect(calls.find(({ args }) => args[0] === "lint")?.args).toEqual([ + "lint", + "--no-error-on-unmatched-pattern", + page, + ]); expect(calls.some(({ args }) => args[0] === "exec" && args[1] === "knip")).toBe(true); });