An Introduction to Unit Testing in Node.js

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control
Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
surveyjs.io
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. mocha

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

    Mocha is a simple and flexible JavaScript testing framework for browser and Node.js applications. Unlike other testing frameworks, it takes a minimalist approach and relies on external libraries for key tasks. It uses Sinon for handling spies, stubs, and mocks, and Chai as the assertion engine. Mocha is extensible through many plugins and can integrate with most test runners.

  2. SurveyJS

    SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control. Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.

    SurveyJS logo
  3. Sinon.JS

    Test spies, stubs and mocks for JavaScript.

    Mocha is a simple and flexible JavaScript testing framework for browser and Node.js applications. Unlike other testing frameworks, it takes a minimalist approach and relies on external libraries for key tasks. It uses Sinon for handling spies, stubs, and mocks, and Chai as the assertion engine. Mocha is extensible through many plugins and can integrate with most test runners.

  4. jest

    Delightful JavaScript Testing.

    Jest is an all-in-one JavaScript testing framework with a focus on simplicity. It supports projects using Babel, TypeScript, Node.js, React, Angular, Vue, and more. To maximize performance, it runs tests in parallel on isolated processes. Jest comes with an integrated assertion engine based on the expect() function and requires zero configuration for most projects.

  5. jasmine

    Simple JavaScript testing framework for browsers and node.js

    Jasmine is a BDD testing framework for Node.js projects and other JavaScript applications. The library comes with no external dependencies, so it is simple to use with a low overhead. It's the oldest of the three tools we've covered, having been around since 2010. Jasmine runs on any JavaScript platform and is compatible with other testing libraries.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Top React Testing Libraries in 2025

    7 projects | dev.to | 31 Mar 2025
  • QuAlity Drinks

    3 projects | dev.to | 4 Aug 2024
  • # 5 Testing Frameworks for JavaScript Developers

    3 projects | dev.to | 1 Jun 2024
  • Road Map To Become a Web Developer

    4 projects | dev.to | 24 Jul 2023
  • Top 15 Must Have Tools For JavaScript Developers

    9 projects | dev.to | 9 Nov 2022

Did you know that JavaScript is
the 4th most popular programming language
based on number of references?