Skip to content

Commit edf0397

Browse files
committed
test(mobile): isolate native dialogs in profile query harness
1 parent 56e4c78 commit edf0397

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/mobile/src/components/profile-screen.test-helpers.tsx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ vi.mock('@/lib/feedback', () => ({
139139
showFeedbackPrompt: vi.fn(),
140140
}));
141141

142+
vi.mock('@/components/use-feedback-prompt', () => ({
143+
useFeedbackPrompt: () => ({ requestPrompt: vi.fn(), promptDialog: null }),
144+
}));
145+
146+
vi.mock('@/components/ui/dialog', () => ({
147+
useConfirmDialog: () => ({ confirm: vi.fn(), dialog: null }),
148+
}));
149+
142150
vi.mock('@/components/ui/icons', () => ({
143151
BookOpenCheck: 'BookOpenCheck',
144152
Building2: 'Building2',

0 commit comments

Comments
 (0)