mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 00:40:22 +00:00
24 lines
909 B
TypeScript
24 lines
909 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { BUNDLED_PLUGIN_LIVE_TEST_GLOB } from "../../vitest.bundled-plugin-paths.ts";
|
|
import liveConfig from "../../vitest.live.config.ts";
|
|
|
|
describe("live vitest config", () => {
|
|
it("runs as a standalone config instead of inheriting unit projects", () => {
|
|
expect(liveConfig.test?.projects).toBeUndefined();
|
|
});
|
|
|
|
it("keeps live tests on thread workers with the non-isolated runner", () => {
|
|
expect(liveConfig.test?.pool).toBe("threads");
|
|
expect(liveConfig.test?.isolate).toBe(false);
|
|
expect(liveConfig.test?.runner).toBe("./test/non-isolated-runner.ts");
|
|
});
|
|
|
|
it("includes live test globs and runtime setup", () => {
|
|
expect(liveConfig.test?.include).toEqual([
|
|
"src/**/*.live.test.ts",
|
|
BUNDLED_PLUGIN_LIVE_TEST_GLOB,
|
|
]);
|
|
expect(liveConfig.test?.setupFiles).toContain("test/setup-openclaw-runtime.ts");
|
|
});
|
|
});
|