25.1.0 • Published 4 years ago
jest-environment-nwjs v25.1.0
jest-environment-nwjs
This package provides a Jest environment that runs tests in NW.js.
Installation
Install jest-environment-nwjs
and node-nw
:
npm install --save-dev jest-environment-nwjs node-nw
Then, add the following to your package.json
:
{
"scripts": {
"jest": "node-nw ./node_modules/.bin/jest --colors"
},
"jest": {
"testEnvironment": "jest-environment-nwjs",
"globalTeardown": "jest-environment-nwjs/teardown"
}
}
Then, run npm run jest
or npm run jest --watch
.
25.1.0
4 years ago