mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:30:43 +00:00
fix(ci): mock gateway run path helpers
This commit is contained in:
@@ -51,6 +51,10 @@ vi.mock("../../config/config.js", () => ({
|
||||
readConfigFileSnapshot: async () => configState.snapshot,
|
||||
recoverConfigFromLastKnownGood: (params: unknown) => recoverConfigFromLastKnownGood(params),
|
||||
recoverConfigFromJsonRootSuffix: (snapshot: unknown) => recoverConfigFromJsonRootSuffix(snapshot),
|
||||
}));
|
||||
|
||||
vi.mock("../../config/paths.js", () => ({
|
||||
CONFIG_PATH: "/tmp/openclaw-test-missing-config.json",
|
||||
resolveStateDir: () => "/tmp",
|
||||
resolveGatewayPort: (cfg?: { gateway?: { port?: number } }) => cfg?.gateway?.port ?? 18789,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user