





















@@ -450,6 +450,70 @@ describe("scripts/test-projects changed-target routing", () => {
450450"scripts/e2e/lib/mcp-code-mode-validation.ts",
451451["test/scripts/mcp-code-mode-gateway-client.test.ts"],
452452],
453+[
454+"scripts/e2e/crestodian-first-run-docker.sh",
455+[
456+"test/scripts/docker-build-helper.test.ts",
457+"test/scripts/docker-e2e-plan.test.ts",
458+"test/scripts/docker-e2e-crestodian.test.ts",
459+],
460+],
461+[
462+"scripts/e2e/crestodian-first-run-docker-client.ts",
463+[
464+"test/scripts/docker-e2e-crestodian.test.ts",
465+"src/cli/run-main.test.ts",
466+"src/cli/run-main.exit.test.ts",
467+"src/crestodian/crestodian.test.ts",
468+"src/crestodian/operations.test.ts",
469+"src/crestodian/overview.test.ts",
470+"src/crestodian/audit.test.ts",
471+],
472+],
473+[
474+"scripts/e2e/crestodian-first-run-spec.json",
475+[
476+"test/scripts/docker-e2e-crestodian.test.ts",
477+"src/crestodian/operations.test.ts",
478+"src/crestodian/audit.test.ts",
479+],
480+],
481+[
482+"scripts/e2e/crestodian-planner-docker.sh",
483+[
484+"test/scripts/docker-build-helper.test.ts",
485+"test/scripts/docker-e2e-plan.test.ts",
486+"test/scripts/docker-e2e-crestodian.test.ts",
487+],
488+],
489+[
490+"scripts/e2e/crestodian-planner-docker-client.mjs",
491+[
492+"test/scripts/docker-e2e-crestodian.test.ts",
493+"src/crestodian/assistant.test.ts",
494+"src/crestodian/crestodian.test.ts",
495+"src/crestodian/operations.test.ts",
496+"src/crestodian/audit.test.ts",
497+],
498+],
499+[
500+"scripts/e2e/crestodian-rescue-docker.sh",
501+[
502+"test/scripts/docker-build-helper.test.ts",
503+"test/scripts/docker-e2e-plan.test.ts",
504+"test/scripts/docker-e2e-crestodian.test.ts",
505+],
506+],
507+[
508+"scripts/e2e/crestodian-rescue-docker-client.ts",
509+[
510+"test/scripts/docker-e2e-crestodian.test.ts",
511+"src/crestodian/rescue-policy.test.ts",
512+"src/crestodian/rescue-message.test.ts",
513+"src/crestodian/operations.test.ts",
514+"src/crestodian/audit.test.ts",
515+],
516+],
453517[
454518"scripts/e2e/commitments-safety-docker-client.ts",
455519[
@@ -1175,6 +1239,37 @@ describe("scripts/test-projects changed-target routing", () => {
11751239});
11761240});
117712411242+it("routes Crestodian Docker E2E script targets instead of skipping changed tests", () => {
1243+const targets = [
1244+"scripts/e2e/crestodian-first-run-docker.sh",
1245+"scripts/e2e/crestodian-first-run-docker-client.ts",
1246+"scripts/e2e/crestodian-first-run-spec.json",
1247+"scripts/e2e/crestodian-planner-docker.sh",
1248+"scripts/e2e/crestodian-planner-docker-client.mjs",
1249+"scripts/e2e/crestodian-rescue-docker.sh",
1250+"scripts/e2e/crestodian-rescue-docker-client.ts",
1251+];
1252+1253+expect(findUnmatchedExplicitTestTargets(targets)).toEqual([]);
1254+expect(resolveChangedTestTargetPlan(targets)).toEqual({
1255+mode: "targets",
1256+targets: [
1257+"test/scripts/docker-build-helper.test.ts",
1258+"test/scripts/docker-e2e-plan.test.ts",
1259+"test/scripts/docker-e2e-crestodian.test.ts",
1260+"src/cli/run-main.test.ts",
1261+"src/cli/run-main.exit.test.ts",
1262+"src/crestodian/crestodian.test.ts",
1263+"src/crestodian/operations.test.ts",
1264+"src/crestodian/overview.test.ts",
1265+"src/crestodian/audit.test.ts",
1266+"src/crestodian/assistant.test.ts",
1267+"src/crestodian/rescue-policy.test.ts",
1268+"src/crestodian/rescue-message.test.ts",
1269+],
1270+});
1271+});
1272+11781273it("includes the isolated tooling shard for broad shell helper targets", () => {
11791274expect(buildVitestRunPlans(["test/scripts"], process.cwd())).toEqual([
11801275{
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。