























@@ -1,4 +1,4 @@
1-import { existsSync, readdirSync } from "node:fs";
1+import { existsSync, readFileSync, readdirSync } from "node:fs";
22import { join } from "node:path";
33import { describe, expect, it } from "vitest";
44import { createPluginContractTestShards } from "../../scripts/lib/plugin-contract-test-plan.mjs";
@@ -27,6 +27,18 @@ function listContractTests(rootDir = "src/plugins/contracts"): string[] {
2727}
28282929describe("scripts/lib/plugin-contract-test-plan.mjs", () => {
30+it("keeps manual CI compatible with legacy target refs", () => {
31+const workflow = readFileSync(".github/workflows/ci.yml", "utf8");
32+33+expect(workflow).toContain(
34+'await import(\n "./scripts/lib/plugin-contract-test-plan.mjs"',
35+);
36+expect(workflow).toContain("checks-fast-contracts-plugins-legacy");
37+expect(workflow).not.toContain(
38+"createPluginContractTestShards: () => [\n createPluginContractTestShards",
39+);
40+});
41+3042it("splits plugin contracts into focused shards", () => {
3143const suffixes = ["a", "b", "c", "d"];
3244此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。