https://github.com/d4rkr00t/jest-electron-runner
Jest TestRunner to run tests in Electron environment
https://github.com/d4rkr00t/jest-electron-runner
jest jest-tests test-runner
Last synced: 6 days ago
JSON representation
Jest TestRunner to run tests in Electron environment
- Host: GitHub
- URL: https://github.com/d4rkr00t/jest-electron-runner
- Owner: d4rkr00t
- Created: 2017-09-10T06:14:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-18T10:37:34.000Z (about 8 years ago)
- Last Synced: 2025-10-19T14:51:09.522Z (14 days ago)
- Topics: jest, jest-tests, test-runner
- Language: JavaScript
- Size: 2.29 MB
- Stars: 49
- Watchers: 4
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-jest - jest-electron-runner
README
# 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 !!!!

## How to use
Install required packages:
```sh
npm install jest jest-electron-runner jest-environment-electron electron
```
Configure jest:
```js
"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