Home

Awesome

jest-electron-runner

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 !!!!

jest electron runner

How to 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"
}

TODO: