mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 08:22:47 +00:00
chore: Fix types in tests 21/N.
This commit is contained in:
@@ -8,14 +8,19 @@ import {
|
||||
} from "./onboard-helpers.js";
|
||||
|
||||
const mocks = vi.hoisted(() => ({
|
||||
runCommandWithTimeout: vi.fn(async () => ({
|
||||
runCommandWithTimeout: vi.fn<
|
||||
(
|
||||
argv: string[],
|
||||
options?: { timeoutMs?: number; windowsVerbatimArguments?: boolean },
|
||||
) => Promise<{ stdout: string; stderr: string; code: number; signal: null; killed: boolean }>
|
||||
>(async () => ({
|
||||
stdout: "",
|
||||
stderr: "",
|
||||
code: 0,
|
||||
signal: null,
|
||||
killed: false,
|
||||
})),
|
||||
pickPrimaryTailnetIPv4: vi.fn(() => undefined),
|
||||
pickPrimaryTailnetIPv4: vi.fn<() => string | undefined>(() => undefined),
|
||||
}));
|
||||
|
||||
vi.mock("../process/exec.js", () => ({
|
||||
|
||||
Reference in New Issue
Block a user