test(scripts): focus build stamp routing

This commit is contained in:
Vincent Koc
2026-06-20 23:49:30 +02:00
parent 896b3c612d
commit 58d295840e
2 changed files with 8 additions and 0 deletions

View File

@@ -434,6 +434,7 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
["test/scripts/package-acceptance-workflow.test.ts"],
],
["scripts/build-all.mjs", ["test/scripts/build-all.test.ts"]],
["scripts/build-stamp.mjs", ["src/infra/build-stamp.test.ts"]],
["scripts/crabbox-wrapper.mjs", ["test/scripts/crabbox-wrapper.test.ts"]],
["scripts/github/barnacle-auto-response.mjs", ["test/scripts/barnacle-auto-response.test.ts"]],
["scripts/changed-lanes.mjs", ["test/scripts/changed-lanes.test.ts"]],

View File

@@ -1064,6 +1064,13 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it("keeps build stamp script edits on the build stamp regression test", () => {
expect(resolveChangedTestTargetPlan(["scripts/build-stamp.mjs"])).toEqual({
mode: "targets",
targets: ["src/infra/build-stamp.test.ts"],
});
});
it("keeps CI workflow edits on workflow guard tests", () => {
expect(resolveChangedTestTargetPlan([".github/workflows/ci.yml"])).toEqual({
mode: "targets",