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 cd6cdd9 3 files · 9.2 KB Updated

File contents

stuffbucket/skills/tree/main/plugins/stuffbucket/skills/tauri-debug-test-mock-ipc commit cd6cdd9072

Frequently asked questions

npx skillmds@latest add stuffbucket/tauri-debug-test-mock-ipc