Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 675 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 675 Bytes

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:

  • Coverage
  • Investigate performance with a lot of test suits