test: fix main test type checks

This commit is contained in:
Peter Steinberger
2026-05-29 11:19:19 +01:00
parent 28a2043f51
commit 182d60535a

View File

@@ -9,7 +9,13 @@ import {
import * as cliCoreApiModule from "../core-api.js";
const mocks = vi.hoisted(() => ({
callBrowserRequest: vi.fn(async () => ({ url: "https://example.test" })),
callBrowserRequest: vi.fn<
(
opts?: unknown,
req?: unknown,
extra?: { timeoutMs?: number },
) => Promise<Record<string, unknown>>
>(async () => ({ url: "https://example.test" })),
}));
vi.spyOn(browserCliSharedModule, "callBrowserRequest").mockImplementation(mocks.callBrowserRequest);