We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98c1eca commit e7592a7Copy full SHA for e7592a7
packages/desktop/scripts/test-env-setup.js
@@ -3,17 +3,3 @@
3
* See the `test:renderer` npm script.
4
*/
5
require("regenerator-runtime/runtime");
6
-
7
-const sinon = require("sinon");
8
-const electron = require("electron");
9
10
-// Create a global mock for ipcRenderer
11
-const ipcRendererMock = {
12
- invoke: sinon.stub(),
13
- send: sinon.stub(),
14
- on: sinon.stub(),
15
- removeListener: sinon.stub(),
16
-};
17
18
-// Replace Electron's ipcRenderer with the mock
19
-electron.ipcRenderer = ipcRendererMock;
0 commit comments