mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 07:00:48 +08:00
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
28 lines
986 B
TypeScript
28 lines
986 B
TypeScript
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()).toEqual([]);
|
|
});
|
|
|
|
it("produces stable sorted output", async () => {
|
|
const first = await collectTestHelperExtensionImportBoundaryInventory();
|
|
const second = await collectTestHelperExtensionImportBoundaryInventory();
|
|
|
|
expect(second).toEqual(first);
|
|
});
|
|
|
|
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())).toEqual([]);
|
|
});
|
|
});
|