mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-08 23:15:26 +01:00
9 lines
255 B
TypeScript
9 lines
255 B
TypeScript
import createIPCMock from 'electron-mock-ipc'
|
|
import { IpcRenderer, IpcMain } from 'electron'
|
|
|
|
const mocked = createIPCMock()
|
|
const ipcMain = mocked.ipcMain as IpcMain
|
|
const ipcRenderer = mocked.ipcRenderer as IpcRenderer
|
|
|
|
export { ipcMain, ipcRenderer }
|