test(scripts): focus bundled metadata routing

This commit is contained in:
Vincent Koc
2026-06-20 23:53:40 +02:00
parent 58d295840e
commit f18ff7551e
2 changed files with 11 additions and 0 deletions

View File

@@ -477,6 +477,10 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
["scripts/ci-changed-scope.mjs", ["src/scripts/ci-changed-scope.test.ts"]],
["scripts/ci-docker-pull-retry.sh", ["test/scripts/ci-docker-pull-retry.test.ts"]],
["scripts/control-ui-i18n.ts", ["test/scripts/control-ui-i18n.test.ts"]],
[
"scripts/copy-bundled-plugin-metadata.mjs",
["src/plugins/copy-bundled-plugin-metadata.test.ts", "src/infra/run-node.test.ts"],
],
[
"scripts/e2e/agent-bundle-mcp-tools-docker.sh",
[

View File

@@ -1071,6 +1071,13 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it("keeps bundled plugin metadata copier edits on runtime owner tests", () => {
expect(resolveChangedTestTargetPlan(["scripts/copy-bundled-plugin-metadata.mjs"])).toEqual({
mode: "targets",
targets: ["src/plugins/copy-bundled-plugin-metadata.test.ts", "src/infra/run-node.test.ts"],
});
});
it("keeps CI workflow edits on workflow guard tests", () => {
expect(resolveChangedTestTargetPlan([".github/workflows/ci.yml"])).toEqual({
mode: "targets",