JavaScript Testing Frameworks

Open-source JavaScript projects categorized as Testing Frameworks

Top 23 JavaScript Testing Framework Projects

  • Cypress

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

  • Project mention: Simulating Internet Outage and Recovery using Cypress | dev.to | 2024-01-25

    In this blog post, we'll explore a Cypress test that replicates this scenario, utilizing the powerful intercept command to manipulate network requests and responses.

  • mocha

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

  • Project mention: Introdução a testes unitários no desenvolvimento de software | dev.to | 2024-03-22
  • 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
  • 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!

  • Enzyme

    JavaScript Testing utilities for React

  • Project mention: The best testing strategies for frontends | dev.to | 2024-04-22

    Probably Enzyme was the first to popularize component testing in React by doing shallow rendering and expecting some things to be there in the React component tree. Then React Testing library came and took component testing to a whole new level.

  • Nightmare

    A high-level browser automation library.

  • jasmine

    Simple JavaScript testing framework for browsers and node.js

  • Project mention: JS Toolbox 2024: Bundlers and Test Frameworks | dev.to | 2024-03-03

    Jasmine is a behavior-driven development framework for testing JavaScript code. It's known for its clean, straightforward syntax and does not rely on any other JavaScript frameworks or a Document Object Model (DOM). Jasmine is often praised for its simplicity and ease of use in both frontend and backend testing environments.

  • karma

    Spectacular Test Runner for JavaScript

  • Project mention: How to Fetch Data from an API in Angular | dev.to | 2023-05-29

    Run ng test to execute the unit tests via Karma.

  • 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
  • nightwatch

    Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack

  • Project mention: Automating Android TV app with Nightwatch | dev.to | 2024-04-25

    Nightwatch which will prompt to create a boilerplate framework specifically for Mobile / TV apps.

  • TestCafe

    A Node.js tool to automate end-to-end web testing.

  • 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:

  • Protractor

    E2E test framework for Angular apps

  • Project mention: Introduction to Cypress and UI Test Automation | /r/u_Ok-Examination-4768 | 2023-05-23

    Cypress is a next-generation front-end Automation testing tool built for modern web applications. It is a JavaScript-based end-to-end testing framework and is known for faster test execution as compared with other testing tools (like Selenium or Protractor).

  • 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.

  • chai

    BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.

  • Project mention: Почему я программирую на Ruby | dev.to | 2023-10-20
  • qunit

    🔮 An easy-to-use JavaScript unit testing framework.

  • Project mention: Unit testing website front end | /r/typescript | 2023-05-16

    Mocha can also run in the browser: https://mochajs.org/#running-mocha-in-the-browser. An alternative library that can also run in the browser is QUnit: https://qunitjs.com/. You can include both with

  • taiko

    A node.js library for testing modern web applications

  • slimerjs

    A scriptable browser like PhantomJS, based on Firefox

  • proxyquire

    🔮 Proxies nodejs require in order to allow overriding dependencies during testing.

  • Project mention: Best practices for writing testable ES6 modules | /r/learnjavascript | 2023-06-08

    Take a look at proxyquire: https://www.npmjs.com/package/proxyquire - they do some fancy magic to allow you to stub es module imports.

  • expect.js

    Minimalistic BDD-style assertions for Node.JS and the browser.

  • blanket

    blanket.js is a simple code coverage library for javascript. Designed to be easy to install and use, for both browser and nodejs.

  • Nullstack

    Feature-Driven Full Stack JavaScript Components

  • FrintJS

    Modular JavaScript framework for building scalable and reactive applications

  • DalekJS

    [unmaintained] DalekJS Base framework

  • autochecker

    ♻️ Test your libraries in many different versions of NodeJS, Ruby, Java and many other languages

  • 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 Testing Frameworks related posts

Index

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

Project Stars
1 Cypress 46,143
2 mocha 22,421
3 ava 20,621
4 Enzyme 19,964
5 Nightmare 19,512
6 jasmine 15,717
7 karma 11,921
8 nightwatch 11,715
9 TestCafe 9,746
10 Sinon.JS 9,556
11 Protractor 8,757
12 istanbul 8,680
13 chai 8,064
14 qunit 4,006
15 taiko 3,482
16 slimerjs 2,995
17 proxyquire 2,741
18 expect.js 2,101
19 blanket 1,405
20 Nullstack 761
21 FrintJS 750
22 DalekJS 698
23 autochecker 597

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