Skip to content

Commit

Permalink
test: fix electron import failing in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jely2002 committed Nov 13, 2021
1 parent 39da2c4 commit 453017f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const defaultSettings = {
version: '2.0.0-test1',
};

jest.mock('electron');

describe('Load settings from file', () => {
beforeEach(() => {
jest.clearAllMocks();
Expand Down

0 comments on commit 453017f

Please sign in to comment.