jest-runner-nightwatch

Run your nightwatch tests using jest as a runner.

Usage no npm install needed!

<script type="module">
  import jestRunnerNightwatch from 'https://cdn.skypack.dev/jest-runner-nightwatch';
</script>

README

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.