mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 13:41:13 +00:00
* 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
17 lines
598 B
TypeScript
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);
|
|
});
|
|
});
|