Nightwatch.js

nightwatchjs.org ↗

Write and run JavaScript end-to-end tests across local browsers and remote grids.

SI Score
80/100
Pricing
Open Source AI reading, not confirmed
Free plan
Not confirmed
Sign-up required
Not confirmed

Ask SI about Nightwatch.js

Answers use saved listing facts and recorded sources.
Homepage screenshot
Screenshot of the Nightwatch.js homepage

What it does

Nightwatch.js is an open-source Node.js test framework for web and native mobile applications. It includes a test runner and tools for authoring, running, and debugging tests, with support for local browsers and remote cloud grids. The current documentation describes end-to-end, component, mobile, API, accessibility, and visual testing workflows.

Start a new project or add Nightwatch to an existing one with npm init nightwatch. The setup prompts you to select testing types, a test language, a base URL, and whether to run locally or on a remote service. Write JavaScript or TypeScript tests and run them through the Nightwatch runner; the guide lists HTML and other reporters, parallel execution, browser debugging, and CI integrations.

The framework itself is MIT-licensed, but cloud-grid execution is a separate provider choice. The quick start can configure some named providers and says that other remote Selenium services require host and port settings in the project's configuration. Nightwatch supports BrowserStack, but the open-source test runner is distinct from BrowserStack Automate's hosted browser infrastructure.

Strengths

  • One setup flow offers end-to-end, component, or mobile test configurations and local or remote execution choices.
  • The guide lists test reporters, parallel runs, browser debugging, and CI integrations for an existing project.
  • The project documents additional API, accessibility, and visual testing modes beyond browser navigation checks.

Watch out for

  • Remote execution depends on a browser-grid provider; other providers may require manual host and port configuration.

Best for

  • JavaScript or TypeScript teams that want one test framework for browser journeys and related component or mobile checks
  • Projects that already have a local browser environment or a separately configured cloud grid

Sources