@zturnlibs/ztron-api


mocks

Functions

clearMocks()

clearMocks(): void

Defined in: mocks.ts:88

Restores the real transports/metadata installed by the mocks above.

Returns

void


mockConvertFileSrc()

mockConvertFileSrc(fn): void

Defined in: mocks.ts:79

Overrides convertFileSrc for asset-URL assertions.

Parameters

fn

(filePath, protocol?) => string

Returns

void


mockIPC()

mockIPC(cb): void

Defined in: mocks.ts:43

Replaces the invoke transport with an in-memory handler.

Parameters

cb

IpcHandler

Returns

void


mockWindows()

mockWindows(...labels): void

Defined in: mocks.ts:59

Seeds window metadata (currentWindow/currentWebview labels) — the shape Window.getCurrent() / Webview.getCurrent() read.

Parameters

labels

...string[]

Returns

void