Spectron
Test Electron apps using ChromeDriver
... an Application class that when configured, can start and stop your Electron application. The Electron helpers provided by Spectron require accessing the core Electron APIs in the renderer processes of your application. So, either your Electron application has nodeIntegration set to true or you'll need to expose a require window global to Spectron so it can access the core Electron APIs.