test(boundary): unify package sdk type paths

This commit is contained in:
Peter Steinberger
2026-04-07 10:24:05 +01:00
parent 524951e124
commit e3cb19d162
7 changed files with 266 additions and 72 deletions

View File

@@ -18,10 +18,14 @@ function runNode(args: string[], timeout: number) {
}
describe("opt-in extension package TypeScript boundaries", () => {
it("typechecks each opt-in extension cleanly through @openclaw/plugin-sdk", () => {
const result = runNode([CHECK_EXTENSION_PACKAGE_BOUNDARY_BIN, "--mode=compile"], 420_000);
expect(result.status, `${result.stdout}\n${result.stderr}`).toBe(0);
}, 300_000);
it(
"typechecks each opt-in extension cleanly through @openclaw/plugin-sdk",
() => {
const result = runNode([CHECK_EXTENSION_PACKAGE_BOUNDARY_BIN, "--mode=compile"], 420_000);
expect(result.status, `${result.stdout}\n${result.stderr}`).toBe(0);
},
300_000,
);
it("fails when opt-in extensions import src/cli through a relative path", () => {
const result = runNode([CHECK_EXTENSION_PACKAGE_BOUNDARY_BIN, "--mode=canary"], 180_000);