Files
openclaw/src/commands/daemon-runtime.test.ts
Vincent Koc f33ab243cf fix(sqlite): reject runtimes vulnerable to WAL corruption (#106065)
* fix(sqlite): require WAL-reset-safe Node runtime

* docs(sqlite): document safe Node runtime floor

* fix(sqlite): defer runtime library validation until use

* fix(ci): align startup memory with Node 24.15
2026-07-13 13:59:00 +08:00

17 lines
598 B
TypeScript

import { describe, expect, it } from "vitest";
import {
DEFAULT_GATEWAY_DAEMON_RUNTIME,
GATEWAY_DAEMON_RUNTIME_OPTIONS,
isGatewayDaemonRuntime,
} from "./daemon-runtime.js";
describe("gateway daemon runtime", () => {
it("accepts only the Node runtime", () => {
expect(DEFAULT_GATEWAY_DAEMON_RUNTIME).toBe("node");
expect(GATEWAY_DAEMON_RUNTIME_OPTIONS.map((option) => option.value)).toEqual(["node"]);
expect(isGatewayDaemonRuntime("node")).toBe(true);
expect(isGatewayDaemonRuntime("bun")).toBe(false);
expect(isGatewayDaemonRuntime(undefined)).toBe(false);
});
});