Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Jest
Jest

1.3K
742
+ 1
120
Nightwatchjs
Nightwatchjs

56
59
+ 1
0
Add tool

Jest vs Nightwatchjs: What are the differences?

Jest: Painless JavaScript Unit Testing. Jest provides you with multiple layers on top of Jasmine; Nightwatchjs: Automated testing and continous integration framework based on node.js and selenium webdriver. Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.

Jest and Nightwatchjs are primarily classified as "Javascript Testing Framework" and "Browser Testing" tools respectively.

Some of the features offered by Jest are:

  • Familiar Approach: Built on top of the Jasmine test framework, using familiar expect(value).toBe(other) assertions
  • Mock by Default: Automatically mocks CommonJS modules returned by require(), making most existing code testable
  • Short Feedback Loop: DOM APIs are mocked and tests run in parallel via a small node.js command line utility

On the other hand, Nightwatchjs provides the following key features:

  • e2e
  • test
  • javascript

Jest and Nightwatchjs are both open source tools. It seems that Jest with 26.4K GitHub stars and 3.57K forks on GitHub has more adoption than Nightwatchjs with 9.43K GitHub stars and 927 GitHub forks.

According to the StackShare community, Jest has a broader approval, being mentioned in 273 company stacks & 161 developers stacks; compared to Nightwatchjs, which is listed in 16 company stacks and 5 developer stacks.

What is Jest?

Jest provides you with multiple layers on top of Jasmine.

What is Nightwatchjs?

Nightwatch.js is an easy to use Node.js based End-to-End (E2E) testing solution for browser based apps and websites. It uses the powerful Selenium WebDriver API to perform commands and assertions on DOM elements.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Jest?
Why do developers choose Nightwatchjs?
    Be the first to leave a pro

    Sign up to add, upvote and see more prosMake informed product decisions

      Be the first to leave a con

      Sign up to add, upvote and see more consMake informed product decisions

      What companies use Jest?
      What companies use Nightwatchjs?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Jest?
      What tools integrate with Nightwatchjs?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Jest and Nightwatchjs?
      Mocha
      Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.
      Selenium
      Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
      AVA
      Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and an isolated environment for each test file.
      Jasmine
      Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
      Cypress
      Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
      See all alternatives
      Decisions about Jest and Nightwatchjs
      No stack decisions found
      Interest over time
      Reviews of Jest and Nightwatchjs
      Avatar of cristiangiagante
      .Net Developer at Hexacta
      Review ofJestJest

      I'm using Jest for 3 months in a Vue JS project . I need to use a lot of custom search of related topics in jest docs because it's not clear. The examples are very poor too.

      How developers use Jest and Nightwatchjs
      Avatar of Volkan Özçelik
      Volkan Özçelik uses JestJest

      Jest is my unit-testing tool of choice.

      Almost all unit testing suites (Mocha, Jasmine, etc.) are more or less the same.

      The main advantage I guess, is that it integrates pretty well with React and Enzyme.

      How much does Jest cost?
      How much does Nightwatchjs cost?
      Pricing unavailable
      Pricing unavailable
      News about Nightwatchjs
      More news