mirror of https://github.com/openclaw/openclaw.git
fix(gateway): annotate connection test mocks
This commit is contained in:
parent
fda98f5605
commit
86fcca2352
|
|
@ -1,9 +1,11 @@
|
|||
import { vi } from "vitest";
|
||||
|
||||
export const loadConfigMock = vi.fn();
|
||||
export const resolveGatewayPortMock = vi.fn();
|
||||
export const pickPrimaryTailnetIPv4Mock = vi.fn();
|
||||
export const pickPrimaryLanIPv4Mock = vi.fn();
|
||||
type TestMock = ReturnType<typeof vi.fn>;
|
||||
|
||||
export const loadConfigMock: TestMock = vi.fn();
|
||||
export const resolveGatewayPortMock: TestMock = vi.fn();
|
||||
export const pickPrimaryTailnetIPv4Mock: TestMock = vi.fn();
|
||||
export const pickPrimaryLanIPv4Mock: TestMock = vi.fn();
|
||||
|
||||
vi.mock("../config/config.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("../config/config.js")>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue