Packages

Testing & Mocking Packages

Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).

166 packages

Packages in Testing & Mocking

93Health
Tool npm

Vitest

A blazing-fast unit testing framework powered by Vite, with Jest-compatible APIs out of the box.

17,166
MIT
Used by 296
92Health
Framework npm

Playwright

Cross-browser end-to-end web testing and browser automation with a single API for Chromium, Firefox, and WebKit.

96,772
Apache 2.0
Used by 229
89Health
Library npm

jsdom

A pure-JavaScript implementation of the WHATWG DOM and HTML standards for Node.js.

21,692
MIT
Used by 200
64Health
Library npm

React Testing Library

Simple and complete React DOM testing utilities that encourage good testing practices.

19,655
MIT
Used by 196
65Health
Library npm

jest-dom

Custom Jest matchers for asserting on the state of the DOM in your tests.

4,598
MIT
Used by 166
95Health
Tool npm

jest

Delightful JavaScript testing with zero-config setup, snapshots, mocking, and coverage

45,465
MIT
Used by 149
77Health
Library npm

user-event

Simulates the full sequence of real browser events so Testing Library tests behave the way an actual user does.

2,330
MIT
Used by 116
96Health
Framework PyPI

pytest

The Python testing framework that makes writing small tests easy and scales to complex functional test suites.

14,543
MIT
Used by 100
95Health
Tool npm

Storybook

The industry-standard workshop for building, documenting, and testing UI components in isolation, across every major frontend framework.

91,163
MIT
Used by 90
67Health
Library npm

DOM Testing Library

Simple, framework-agnostic DOM query utilities that test your UI the way real users interact with it.

3,335
MIT
Used by 87
91Health
Library npm

Faker

Generate massive amounts of realistic fake data for testing, seeding, and mocking in JavaScript and TypeScript.

15,502
MIT
Used by 60
93Health
Tool npm

Cypress

Fast, easy, and reliable end-to-end and component testing for anything that runs in a browser.

51,026
MIT
Used by 38
94Health
Tool npm

mocha

The classic, battle-tested JavaScript test framework for Node.js and the browser, built around flexible async testing and pluggable reporters.

22,896
MIT
Used by 30
85Health
Library npm

Chai

BDD/TDD assertion library for Node.js and the browser, framework-agnostic

8,268
MIT
Used by 27
62Health
Tool npm

c8

Native V8 code coverage for Node.js, with Istanbul-compatible reports and zero build-step setup.

2,121
Other
Used by 12
62Health
Tool npm

jest-junit

A Jest reporter that converts test results into JUnit-compatible XML for CI dashboards and test-analytics tools.

502
Apache 2.0
Used by 11
81Health
Framework Go

Ginkgo

A mature, BDD-style testing framework for Go that pairs with Gomega to write expressive, parallelizable specs.

9,061
MIT
Used by 10
83Health
Tool npm

start-server-and-test

Starts your dev server, waits for it to respond, runs your test command, then shuts the server down automatically.

1,581
MIT
Used by 9
37Health
Library npm

deep-equal

A standalone port of Node's own assert.deepEqual algorithm, giving spec-accurate deep equality checks in Node and the browser alike.

792
MIT
Used by 9
81Health
Library npm

jest-extended

Additional custom matchers for Jest to extend and simplify your test assertions.

2,349
MIT
Used by 8
62Health
Library npm

vitest-canvas-mock

A drop-in HTML canvas mock for Vitest that emulates spec-accurate CanvasRenderingContext2D behavior in jsdom test environments.

70
MIT
Used by 7
42Health
SDK npm

chrome-remote-interface

A Node.js client for the Chrome DevTools Protocol, exposing every browser command, event, and type as a plain JavaScript API.

4,554
MIT
Used by 3
44Health
Library npm

randexp.js

Generates random strings that match any given JavaScript regular expression.

1,866
MIT
Used by 3
59Health
Library npm

uvu

An extremely fast, lightweight test runner for Node.js and the browser, with optional browser-safe assertions.

3,031
MIT
Used by 2

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers