Need help to understand test under electron

Hi,

I joined a team that is currently working on an electron app. I have no skill in test (unitest, functionnal test, etc) and there are a couple of thing that i understand.

For example : testing ipc it’s unit or functionnal ? In unit test currently in place they test IPC with an eventEmitter, but how doing if i want to use the invoke / handle method of ipcMain / ipcRenderer ?

For correctly test ipc, if i have understand, we need to use spectron ? Someone have time and skills for chat a little about all of this ?

Thansk a lot to anyone