Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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