Skip to content

Commit 3efd6e9

Browse files
committed
test: pin the importTargetPlan form of the plugin-contract plan import
The guard expectation still referenced the raw await import( form that 7ae5996 (#103975) replaced with the importTargetPlan fallback helper; the assertion fails on current main.
1 parent a7dba4c commit 3efd6e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/scripts/plugin-contract-test-plan.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ describe("scripts/lib/plugin-contract-test-plan.mjs", () => {
1515
it("keeps manual CI compatible with legacy target refs", () => {
1616
const workflow = readFileSync(".github/workflows/ci.yml", "utf8");
1717

18+
// ci.yml imports the plan through the importTargetPlan fallback helper since
19+
// 7ae5996bb3c so historical target refs without the module keep working.
1820
expect(workflow).toContain(
19-
'await import(\n "./scripts/lib/plugin-contract-test-plan.mjs"',
21+
'await importTargetPlan(\n "./scripts/lib/plugin-contract-test-plan.mjs"',
2022
);
2123
expect(workflow).toContain("checks-fast-contracts-plugins-legacy");
2224
expect(workflow).not.toContain(

0 commit comments

Comments
 (0)