mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 16:12:13 +00:00
22 lines
840 B
TypeScript
22 lines
840 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { BUNDLED_PLUGIN_E2E_TEST_GLOB } from "../../vitest.bundled-plugin-paths.ts";
|
|
import e2eConfig from "../../vitest.e2e.config.ts";
|
|
|
|
describe("e2e vitest config", () => {
|
|
it("runs as a standalone config instead of inheriting unit projects", () => {
|
|
expect(e2eConfig.test?.projects).toBeUndefined();
|
|
});
|
|
|
|
it("includes e2e test globs and runtime setup", () => {
|
|
expect(e2eConfig.test?.include).toEqual([
|
|
"test/**/*.e2e.test.ts",
|
|
"src/**/*.e2e.test.ts",
|
|
BUNDLED_PLUGIN_E2E_TEST_GLOB,
|
|
]);
|
|
expect(e2eConfig.test?.pool).toBe("threads");
|
|
expect(e2eConfig.test?.isolate).toBe(false);
|
|
expect(e2eConfig.test?.runner).toBe("./test/non-isolated-runner.ts");
|
|
expect(e2eConfig.test?.setupFiles).toContain("test/setup-openclaw-runtime.ts");
|
|
});
|
|
});
|