Skip to content

nightwatchjs/nightwatch-plugin-nx

Repository files navigation

Nightwatchjs - nx plugin

This nx plugin sets up Nightwatch for you to be able to run your E2E tests.

Installation

To install you will need to do

npm i @nightwatch/nx --save-dev

Generating a project

nx g @nightwatch/nx:nightwatch-project

Writing Tests

To write your tests please follow the documentation on the Nightwatchjs.org site.

Running Tests

When you have written your tests you can run them with the following command

nx e2e my-app-e2e

NightwatchJS arguments will be forwarded on from nx