Whalebird-desktop-client-ma.../spec/mock/electron.ts

8 lines
181 B
TypeScript
Raw Normal View History

import createIPCMock from 'electron-mock-ipc'
const mocked = createIPCMock()
const ipcMain = mocked.ipcMain
const ipcRenderer = mocked.ipcRenderer
export { ipcMain, ipcRenderer }