blob: c53a3f845776eaf06fd0d32a69d61778f1e54d61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const electron = /** @type {{ ELECTRON_MODULE: import('electron')}} */ (
/** @type {unknown} */ (globalThis)
).ELECTRON_MODULE;
const { BrowserWindow } = electron;
jest.mock('electron', () => electron);
afterEach(() => {
BrowserWindow.getAllWindows().forEach((window) => {
window.destroy();
});
});
|