Unit testing: What to use, and how?

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • Klotho - AWS Cloud-aware infrastructure-from-code toolbox [NEW]
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • InfluxDB - Access the most powerful time series database as a service
  • Sonar - Write Clean JavaScript Code. Always.
  • tape

    tap-producing test harness for node and browsers

    A more minimalist approach is this tape module and the TAP protocol. https://www.npmjs.com/package/tape

  • ava

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

    I've had some good experiences with Ava + Sinon. I've personally disliked Jest because it seemed to do some weird trickery in the background that prevented me from using ES modules.

  • Klotho

    AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)

  • Sinon.JS

    Test spies, stubs and mocks for JavaScript.

    I've had some good experiences with Ava + Sinon. I've personally disliked Jest because it seemed to do some weird trickery in the background that prevented me from using ES modules.

  • utap

    Micro TAP formatter

    I'm using Node's builtin on my current project, and while it's fine, it feels somewhat barebones. Could be just the fact that it only does TAP output, but I've had to pull in an extra dependency for output formatting ( utap is nice ) and work out some kinks, like adding a custom assert message to assert.deepEquals removes the diff from the error message.

  • Prisma

    Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

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