JavaScript unit-testing

Open-source JavaScript projects categorized as unit-testing

Top 19 JavaScript unit-testing Projects

  • ava

    Node.js test runner that lets you develop with confidence πŸš€

  • Project mention: Painless CLI integration testing | dev.to | 2024-01-10

    We use Jest Framework for testing. Jest is not a dogma, and, of course, in its place can be any other test runner, such as Mocha or Ava. Let's focus on tests. I'll provide a short example because I don’t want to waste your time. You can find the full version here. It's crucial to read the comments in the code below. Let's go!

  • Sinon.JS

    Test spies, stubs and mocks for JavaScript.

  • Project mention: Unit Testing in Node.js and TypeScript: A Comprehensive Guide with Jest Integration | dev.to | 2024-03-03

    If you are using a mocking library, such as sinon, jest-mock, or ts-mockito, make sure that it is compatible with Jest. You may need to install additional packages or configure them in your configuration file. For example, to use sinon with Jest, you can install the sinon-jest package and add the following to your configuration file:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • dredd

    Language-agnostic HTTP API Testing Tool

  • Project mention: The Uncreative Software Engineer's Compendium to Testing | dev.to | 2023-07-31

    Dredd: used to test APIs based on the API blueprint or OpenAPI specification, to ensure implementation matches the specification.

  • cypress-example-recipes

    Various recipes for testing common scenarios with Cypress

  • rewire

    Easy monkey-patching for node.js unit tests (by jhnns)

  • Project mention: Build a web editor with react-monaco-editor | dev.to | 2023-05-04

    Ejecting a React app is a bad idea because our application will lose all the React configurations and will not benefit from the CRA updates. Some solutions for ejecting our application include using packages like react-app-rewired or rewire. You can also use CRACO to eject your React application, but it needs you to install additional plugins.

  • redux-saga-test-plan

    Test Redux Saga with an easy plan.

  • enzyme-to-json

    Snapshot test your Enzyme wrappers

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • enzyme-matchers

    Jasmine/Jest assertions for enzyme

  • electron-nuxt

    ⚑ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools

  • Jasmine-Matchers

    Write Beautiful Specs with Custom Matchers for Jest and Jasmine

  • restqa

    🦏 | Best in class Microservice automation testing. Test Driven Happiness

  • oletus

    Minimal ECMAScript Module test runner

  • Project mention: Jest not recommended to be used in Node.js due to instanceOf operator issues | news.ycombinator.com | 2023-06-30

    I am currently one of the maintainers of Oletus.

    [1] https://bun.sh/docs/cli/test

    [2] https://github.com/oven-sh/bun/issues/3158

    [3] https://github.com/bearror/oletus

  • vue-composition-test-utils

    Simple vue composition api unit test utilities support both Vue 2 and 3

  • currency-api

    A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul. (by geshan)

  • home-automation-ui

    Home Automation Web Application UI built using ReactJS

  • pFreak

    pFreak is a unit-level 2-in-1 JavaScript benchmarking and testing framework.

  • test-runner-compare

    JavaScript Test Runner Comparison(Jest, AVA, Mocha, tape, Jasmine, uvu, vitest)

  • node-lambda-unit-test

    Unit testing of AWS lambda function (Node.js) using Mocha and Chai

  • tdd-fql-jest

    Repository for the blog post "Applying test-driven development to your database"

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript unit-testing related posts

Index

What are some of the best open-source unit-testing projects in JavaScript? This list will help you:

Project Stars
1 ava 20,621
2 Sinon.JS 9,556
3 dredd 4,125
4 cypress-example-recipes 3,370
5 rewire 3,070
6 redux-saga-test-plan 1,245
7 enzyme-to-json 953
8 enzyme-matchers 894
9 electron-nuxt 712
10 Jasmine-Matchers 587
11 restqa 79
12 oletus 45
13 vue-composition-test-utils 38
14 currency-api 19
15 home-automation-ui 11
16 pFreak 5
17 test-runner-compare 2
18 node-lambda-unit-test 1
19 tdd-fql-jest 0

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com