Skip to content

Commit bc603df

Browse files
committed
chore: add dialog plugin mock to test setup
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent baa2219 commit bc603df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/ts/setup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ vi.mock('@tauri-apps/plugin-updater', () => ({
2424
Update: vi.fn(),
2525
}));
2626

27+
// Mock Tauri dialog plugin
28+
vi.mock('@tauri-apps/plugin-dialog', () => ({
29+
open: vi.fn(),
30+
}));
31+
2732
// Mock Tauri process plugin
2833
vi.mock('@tauri-apps/plugin-process', () => ({
2934
relaunch: vi.fn(),

0 commit comments

Comments
 (0)