mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 18:03:51 +02:00
18 lines
525 B
TypeScript
18 lines
525 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolveVitestNodeArgs } from "../../scripts/run-vitest.mjs";
|
|
|
|
describe("scripts/run-vitest", () => {
|
|
it("adds --no-maglev to vitest child processes by default", () => {
|
|
expect(resolveVitestNodeArgs({ PATH: "/usr/bin" })).toEqual(["--no-maglev"]);
|
|
});
|
|
|
|
it("allows opting back into Maglev explicitly", () => {
|
|
expect(
|
|
resolveVitestNodeArgs({
|
|
OPENCLAW_VITEST_ENABLE_MAGLEV: "1",
|
|
PATH: "/usr/bin",
|
|
}),
|
|
).toEqual([]);
|
|
});
|
|
});
|