Skip to content

Commit 9629e90

Browse files
committed
test(scripts): assert both knip passes in the launcher test
1 parent f410444 commit 9629e90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/check-changed.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ it("lints an Astro component and runs knip when only it changed", () => {
425425
"--no-error-on-unmatched-pattern",
426426
page,
427427
]);
428-
expect(calls.some(({ args }) => args[0] === "exec" && args[1] === "knip")).toBe(true);
428+
const commands = calls.map(({ args }) => args);
429+
expect(commands).toContainEqual(["exec", "knip", "--include", "files"]);
430+
expect(commands).toContainEqual(["exec", "knip", "--exports"]);
429431
});
430432

431433
it.each(["install", "lint"])("reports a failing %s step with its output", (step) => {

0 commit comments

Comments
 (0)