jest VS nightwatch

Compare jest vs nightwatch and see what are their differences.

Our great sponsors
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Sonar - Write Clean JavaScript Code. Always.
  • Zigi - Close all those tabs. Zigi will handle your updates.
jest nightwatch
354 19
40,819 11,245
0.6% 0.3%
9.9 9.4
2 days ago 2 days ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of jest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-01.
  • How to Confidently Write Unit Tests using React Testing Library
    7 projects | | 1 Dec 2022
    We cannot only use the testing library alone, but we also need to install Jest which exposes extensively used global expect function and other things which help to make assertions in our test cases.
  • How I go with react native in late 2022
    33 projects | | 27 Nov 2022
    There's nothing better than jest and testing-library/react-native in react-native. these tools are suitable for unit and integration tests and they have great community support, utils, and helper functions.
  • Adding Tests for ESM using Jest framework
    2 projects | | 25 Nov 2022
    Jest is a testing framework for Javascript projects. It ensures that the implemented core functionality of the codebase is not prone to errors by allowing developers to write convenient tests.
  • Nodejs Boilerplate with Typescript and Express
    4 projects | | 24 Nov 2022
  • OSD600 - Telescope - Testing for feed URLs
    4 projects | | 20 Nov 2022
    However, while running the tests using jest would result in a pass, the expectations would actually fail and the failure result would show up after the tests have already ended. I was confused as to why was happening for a while. Eventually, I noticed this in the file:
  • Auto-run Tests: Test Via Continuous Integration
    2 projects | | 17 Nov 2022
    There was another repo I tried to add test for, and it uses the same setup as mine. It uses JavaScript and achieve CI via GitHub Action, except that it also run test for version 14.x and 16.x of Node.js. Given both repo use Jest for testing, It's pretty easy to write test for the repo. I needed to spend time to understand the code and then run test coverage and see the existing tests to see what's needed to be done.
  • Making sure izyum is fresh
    3 projects | | 14 Nov 2022
    Two testing engines are usually used for testing purposes in the ECMAScript world which are jest and mocha. I had previous experience with both of them and to be honest I don't see big differences between them on the basic level. I decided to go with it just because it is more popular and I did use it with typescript before so I did know it had good types of support.
  • Conditional Logging to the JavaScript Console
    4 projects | | 14 Nov 2022
    The console created by createDebugConsole will not be active in unit tests, so you won't be able to use it to prevent logging in your test environment. If you use jest you can silence console methods with the jest CLI.
  • Ng-News: Episode 22/45
    2 projects | | 14 Nov 2022
    Jest 29.3 Release Notes
  • JavaScript testing with Jest
    3 projects | | 13 Nov 2022
    I chose Jest, as it is one of the most used testing frameworks for JavaScript and most of my tool's logic is written in JS. It was developed by Facebook and is open-source. Jest also has CLI option for checking coverage which is very great, it shows which lines of code have been tested and not and prints a beautiful report.


Posts with mentions or reviews of nightwatch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-13.
  • A guide for technical writers on JavaScript Testing Libraries
    5 projects | | 13 Aug 2022
  • A Beginner’s Guide To Test Automation With Javascript(Nightwatch.js). Part 3.
    4 projects | | 6 Jun 2022
    The reason for this behavior is thoroughly explained in Understanding the Command Queue Nightwatch.js GitHub wiki (it is a long read but it’s worth it). In this section, we will not look in such detail, this is going to be a summary of sorts. By the way, this command queue example can be found in Loadero’s public GitHub examples repository here.
  • How To Perform Automation Testing With Cucumber And Nightwatch JS?
    2 projects | | 18 Apr 2022
    Nightwatch.js is a popular open-source, Selenium JavaScript-based test automation framework for automating browser-based web applications and websites. It is written in Node.js runtime and uses the W3C WebDriver API (formerly Selenium WebDriver) for interacting with various browsers to perform commands and assertions on DOM elements.
  • Properly Configuring Nightwatch to Run Geckodriver
    3 projects | | 26 Mar 2022
    For Firefox-specific options (like command-line args and browser about:config prefs), the property to use is moz:firefoxOptions. That is shipping in the latest default nightwatch.conf.js file, as is the parallel goog:chromeOptions for chromedriver. But if you've got a legacy configuration file—like I did—you'll want to update the old chromeOptions property, too.
    3 projects | | 26 Mar 2022
    I’ll get right to it: both the stock Nightwatch configuration file (as of at least Nightwatch v. 2.0.9) and the Nightwatch docs are inaccurate for using the geckodriver web driver (specifically, v. 0.30.0) to run tests. Here is what you need to do, isolated to the firefox environment portion of the test_settings object in a nightwatch.conf.js file:
  • Learn How To Create, Test and Deploy a Single Page App with Vue 3 + Vite and Pinia
    11 projects | | 5 Feb 2022
    Make sure the current working directory is the project root and then simply run an example test which are bundled with Nightwatch. We’ll pick the duckDuckGo test because it’s the fastest:
    11 projects | | 5 Feb 2022
    writing and running automated end-to-end tests with Nightwatch.js
  • How to automate tests for your website using Nightwatch.js ? - Part 1- Setting up nightwatch
    2 projects | | 3 Dec 2021
    Powered by Node.js, Nightwatch.js is an open-source end-to-end test automation tool for web-based applications, browser applications, and websites. For further information and guide in Nightwatch.js, you can visit their official website
  • Advanced Roadmap for React.js developers
    20 projects | | 25 Nov 2021
    -Selenium -Webdriver -Cypress -Puppeteer -Cucumber.js -Nightwatch.js
  • Visual Regression Test with Nigthwatch VRT
    4 projects | | 3 Nov 2021
    The definition of nightwatch-vrt is quite clear from its name. It is a VRT tool that works as an extension to nightwatch.js. Using nightwatch-vrt is pretty straightforward. You only need to invoke the screenshotIdenticalToBaseline function to make a comparison of the current screenshot with the respective baseline image. And if you look at the internal logic of this function then you will find that all it does is wait for an element to be present, then capture the screenshot of that element, compare it with the baseline, and finally return the comparison result. And if you look further into the image comparison logic then you will notice that nightwatch-vrt actually uses JIMP (JavaScript Image Manipulation Program) which is built with Javascript with no native dependencies.

What are some alternatives?

When comparing jest and nightwatch you can also consider the following projects:

tap - Test Anything Protocol tools for node

vitest - A Vite-native test framework. It's fast!

Cucumber.js - Cucumber for JavaScript

Sinon.JS - Test spies, stubs and mocks for JavaScript.

Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

nyc - the Istanbul command line interface

WebdriverIO - Next-gen browser and mobile automation test framework for Node.js

ava - Node.js test runner that lets you develop with confidence 🚀

istanbul - Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.

Cypress - Fast, easy and reliable testing for anything that runs in a browser.

mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser