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

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
75Health
Library Go

testify

The essential Go toolkit for assertions, mocks, and structured test suites.

26,217
MIT
Used by 102
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
68Health
Library Cargo

tempfile

A secure, cross-platform Rust library for temporary files and directories that clean up automatically on drop.

1,468
Other
Used by 69
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
79Health
Library npm

MSW (Mock Service Worker)

Seamless REST and GraphQL API mocking for browser and Node.js

18,227
MIT
Used by 57
95Health
Library npm

Puppeteer

Node.js library for automating Chrome and Firefox over the DevTools Protocol and WebDriver BiDi

95,625
Apache 2.0
Used by 39
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
92Health
Framework Composer

PHPUnit

The de facto standard, programmer-oriented unit testing framework for PHP.

20,057
BSD 3
Used by 34
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
48Health
Library Go

go-cmp

A safer, more powerful alternative to reflect.DeepEqual for comparing Go values in tests.

4,678
BSD 3
Used by 29
85Health
Library npm

Chai

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

8,268
MIT
Used by 27
91Health
Library Go

testcontainers-go

Programmatically spin up disposable Docker containers for Go integration and smoke tests, then tear them down automatically.

4,993
MIT
Used by 21
89Health
Library npm

testcontainers-node

Spin up disposable Docker containers to run real databases, brokers, and browsers in your Node.js tests.

2,617
MIT
Used by 20
67Health
Library Cargo

serial_test

Attribute macros that serialize or parallelize Rust tests via named locks.

296
MIT
Used by 17
54Health
Library Go

go-sqlmock

A mock sql/driver implementation for Go that simulates database behavior in tests without a real database connection.

6,573
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

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