We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31363db commit 91cb11bCopy full SHA for 91cb11b
jest.setup.js
@@ -2,7 +2,9 @@ require('@testing-library/jest-dom')
2
3
// Mock Tauri API
4
global.window = global.window || {};
5
-global.window.__TAURI_INTERNALS__ = {};
+global.window.__TAURI_INTERNALS__ = {
6
+ invoke: jest.fn()
7
+};
8
global.window.isTauri = true;
9
10
// Mock Tauri invoke function
0 commit comments