Skip to content

Commit e7592a7

Browse files
remove test env change
1 parent 98c1eca commit e7592a7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/desktop/scripts/test-env-setup.js

-14
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,3 @@
33
* See the `test:renderer` npm script.
44
*/
55
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

Comments
 (0)