Nightwatch is a framework that allows automated acceptance tests for browser-based apps to be created in JavaScript and run in Node.js. Nightwatch allows tests to be defined using a fluent API which can then be executed against a Selenium/WebDriver server. In the case of single page apps or other JavaScript-heavy pages, this allows the automated tests to be created and run within the same language and environment as the bulk of the code.