0.0.1 • Published 7 years ago

jest-environment-electron v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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