How to unittest Electron and Angular?

Hi everyone,

I am experimenting with Angular and Electron and try to understand what’s the most recent situation and goto with unit tests.

This is the current situation of my app:

    - Electron
        - Angular Service
        - UI/Frontend

Technically I have three components to test. First the Electron app itself, then an Angular service, which contains most logic and I/O operations and then the UI/frontend.

In a typical production pipeline, how would I test these three components? I found Spectron, Mocha and Karma, but I am not sure which one to go with.

Would I test all of the components with different frameworks or is one good for all? I was even considering to implement a --debug command for the app, so I can run the unittests in development and/or production builds.

Can anyone help me? Thanks a lot!