Skip to content

Commit

Permalink
chore: disable electron-log in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphe committed Sep 15, 2020
1 parent d1dfd28 commit 4c1f21f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/shared/log.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
import { functions } from 'electron-log';
Object.assign(console, functions);
if (process.env.REACT_APP_ENV !== 'test') {
const { functions } = require('electron-log');
Object.assign(console, functions);
}

export default null;

0 comments on commit 4c1f21f

Please sign in to comment.