Tauri Debug Test Mock Ipc

Use when unit-testing the frontend of a Tauri v2 app under jsdom/happy-dom — intercepting `invoke()` calls with `mockIPC`, faking multiple windows with `mockWindows`, spying on `__TAURI_INTERNALS__.invoke` for call-count assertions, simulating Rust→JS events with `shouldMockEvents` (Tauri 2.7+), wiring `clearMocks()` into `afterEach`, polyfilling `globalThis.crypto.subtle` under jsdom, and the Vitest-vs-bun-test compatibility notes.

stuffbucket Updated 4 repo stars

File contents

stuffbucket/skills commit cd6cdd9072

Frequently asked questions

npx get-skill add stuffbucket/tauri-debug-test-mock-ipc