Skip to content

Commit

Permalink
Mock sentry in unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Sep 25, 2024
1 parent e671542 commit 105c5ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__tests__/unit/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jest.mock('node:path', () => ({
}),
}));

jest.mock('@sentry/electron/main', () => ({
init: jest.fn(),
captureException: jest.fn(),
}));

jest.mock('tar', () => ({
extract: jest.fn(),
}));
Expand Down

0 comments on commit 105c5ca

Please sign in to comment.