Module tauri_sys::mocks

source ·
Expand description

Functions§

  • 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.
  • Intercepts all IPC requests with the given mock handler.
  • Mocks the current window label In non-tauri context it is required to call this function///before* using the @tauri-apps/api/window module.
  • Mocks many window labels. In non-tauri context it is required to call this function///before* using the @tauri-apps/api/window module.