Package-level declarations

Types

Link copied to clipboard
external interface MockIPCOptions

Options for mockIPC.

Functions

Link copied to clipboard
external fun clearMocks()

Clears mocked functions/data injected by the other functions in this module. When using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.

Link copied to clipboard
external fun mockConvertFileSrc(osName: String)

Mock convertFileSrc function

Link copied to clipboard
external fun mockIPC(cb: (cmd: String, InvokeArgs?) -> Any?, options: MockIPCOptions = definedExternally)

Intercepts all IPC requests with the given mock handler.

Link copied to clipboard
external fun mockWindows(current: String, vararg _additionalWindows: String)

Mocks one or many window labels. In non-tauri context it is required to call this function before using the @tauri-apps/api/window module.