From f0b8cc849bcd11da24bc0ed29130598646fa0cb6 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 30 Apr 2026 04:54:15 -0700 Subject: [PATCH] fix(ci): align runtime deps sentinel expectation --- test/release-check.test.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/release-check.test.ts b/test/release-check.test.ts index 0fe41c65e2f..e817fd40bef 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -918,13 +918,25 @@ describe("bundledRuntimeDependencySentinelCandidates", () => { "playwright-core", { HOME: homeRoot } as NodeJS.ProcessEnv, ); + const realRootCandidates = bundledRuntimeDependencySentinelCandidates( + packageRoot, + "browser", + "playwright-core", + { HOME: homeRoot } as NodeJS.ProcessEnv, + ); const externalCandidates = candidates.filter( (candidate) => candidate.startsWith(join(homeRoot, ".openclaw", "plugin-runtime-deps")) && candidate.endsWith(join("node_modules", "playwright-core", "package.json")), ); + const realRootExternalCandidates = realRootCandidates.filter( + (candidate) => + candidate.startsWith(join(homeRoot, ".openclaw", "plugin-runtime-deps")) && + candidate.endsWith(join("node_modules", "playwright-core", "package.json")), + ); - expect(externalCandidates.length).toBeGreaterThanOrEqual(2); + expect(externalCandidates).toEqual(realRootExternalCandidates); + expect(externalCandidates).toHaveLength(1); } finally { rmSync(root, { recursive: true, force: true }); }