0.3.2 • Published 6 years ago

jest-runner-nightwatch v0.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

jest-runner-nightwatch Build Status

Run your nightwatch tests using jest as a runner.

Usage

Add jest configuration and move command line parameters that you used for nightwatch into jest-runner-nightwatch configuration in your package.json or config files.

So, if use were runnig nightwatch like this $ nightwatch --env default -c ./nightwatch.conf.js, the config will be:

{
 "jest": {
    "runner": "jest-runner-nightwatch"
 }, 
 "jest-runner-nightwatch": {
    "cliOptions": {
      "config": "./nightwatch.conf.js",
      "env": "default"
    }
  }
}

The project uses cosmiconfig, so you can also put settings into .config.js or .rc file.

Now, instead of running nightwatch, you can run jest.