Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-18T10:37:34.000Z (about 7 years ago)
- Last Synced: 2024-07-10T19:58:32.165Z (4 months ago)
- Topics: jest, jest-tests, test-runner
- Language: JavaScript
- Size: 2.29 MB
- Stars: 49
- Watchers: 5
- Forks: 7
- 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 !!!!
![jest electron runner](/assets/jest-electron-full.gif)
## 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