Jest test runner that executes tests in Electron's BrowserWindow environment, which gives you access to all browser APIs available there.
EXPERIMENTAL. NOT READY FOR ANY SERIOUS USE !!!!
Install required packages:
npm install jest jest-electron-runner jest-environment-electron electron
Configure jest:
"jest": {
"runner": "jest-electron-runner",
// Environment is important, otherwise jest will use jsdom by default.
"testEnvironment": "jest-environment-electron"
}
- Coverage
- Investigate performance with a lot of test suits