mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 07:41:08 +00:00
24 lines
944 B
TypeScript
24 lines
944 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import uiConfig from "../ui/vitest.config.ts";
|
|
import uiNodeConfig from "../ui/vitest.node.config.ts";
|
|
|
|
describe("ui package vitest config", () => {
|
|
it("keeps the standalone ui package on threads and isolate=false", () => {
|
|
expect(uiConfig.test?.pool).toBe("threads");
|
|
expect(uiConfig.test?.isolate).toBe(false);
|
|
expect(uiConfig.test?.projects).toHaveLength(3);
|
|
|
|
for (const project of uiConfig.test?.projects ?? []) {
|
|
expect(project.test?.pool).toBe("threads");
|
|
expect(project.test?.isolate).toBe(false);
|
|
expect(project.test?.runner).toBe("../test/non-isolated-runner.ts");
|
|
}
|
|
});
|
|
|
|
it("keeps the standalone ui node config on threads and isolate=false", () => {
|
|
expect(uiNodeConfig.test?.pool).toBe("threads");
|
|
expect(uiNodeConfig.test?.isolate).toBe(false);
|
|
expect(uiNodeConfig.test?.runner).toBe("../test/non-isolated-runner.ts");
|
|
});
|
|
});
|