In case anyone is interested on how to mock ipcRenderer of ElectronService without using ipcMain in unit tests, I have created a gist that contains the mock service along with an example. It simulates ipcRenderer.on() event with the use of RxJS Observables.

)

    Aristeidis Bampakos

    Written by

    Front End Web Developer at Plexscape