1.0.0 • Published 5 years ago
jest-runner-electron v1.0.0
jest electron runner
This is custom runner and custom environment for jest electron runner. What features it includes ?
- Running tests in electron renderer environnement
- Parallel tests execution
- Running tests in headless environnement
- Debugging tests with built in awaiters.
how to install
see example folders for working example.
- install jest and this lib
- add set the following properties in config
{
globals: {
__REACT_DEVTOOLS_GLOBAL_HOOK__: false,
ELECTRON_DISABLE_SECURITY_WARNINGS: false
},
runner: "<TBD>/runner.js",
testEnvironment: "<TBD>/env.js"
}
- Optionally you can set ELECTRON_RUNNER_DEBUG if you wish to open dev tools and electron view
1.0.0
5 years ago