mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 02:40:24 +00:00
test(boundary): unify package sdk type paths
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user