diff --git a/src/__mocks__/electron.js b/src/__mocks__/electron.js index 7d4f4f34e..3362dc13e 100644 --- a/src/__mocks__/electron.js +++ b/src/__mocks__/electron.js @@ -1,3 +1,4 @@ +// @ts-ignore window.Notification = function (title) { this.title = title; @@ -6,6 +7,7 @@ window.Notification = function (title) { }; }; +// @ts-ignore window.Audio = class Audio { constructor(path) { this.path = path; @@ -14,6 +16,7 @@ window.Audio = class Audio { play() {} }; +// @ts-ignore window.localStorage = { store: {}, getItem: function (key) { diff --git a/tsconfig.json b/tsconfig.json index 99a01a632..4ded5d19d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,8 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "types": ["jest"], - "skipLibCheck": true + "skipLibCheck": true, + "checkJs": true }, "include": [ "src/**/*.js",