Files
openclaw/test/test-helper-extension-import-boundary.test.ts
2026-06-04 20:37:28 -04:00

23 lines
822 B
TypeScript

// Test helper extension boundary tests enforce helper import boundaries.
import { describe, expect, it } from "vitest";
import {
collectTestHelperExtensionImportBoundaryInventory,
main,
} from "../scripts/check-test-helper-extension-import-boundary.mjs";
import { createCapturedIo } from "./helpers/captured-io.js";
describe("test-helper extension import boundary inventory", () => {
it("stays empty", async () => {
expect(await collectTestHelperExtensionImportBoundaryInventory()).toStrictEqual([]);
});
it("script json output stays empty", async () => {
const captured = createCapturedIo();
const exitCode = await main(["--json"], captured.io);
expect(exitCode).toBe(0);
expect(captured.readStderr()).toBe("");
expect(JSON.parse(captured.readStdout())).toStrictEqual([]);
});
});