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,276
MIT
Used by 297
92Health
Framework npm

Playwright

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

98,387
Apache 2.0
Used by 230
90Health
Library npm

jsdom

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

21,730
MIT
Used by 200
61Health
Library npm

React Testing Library

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

19,672
MIT
Used by 196
59Health
Library npm

jest-dom

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

4,603
MIT
Used by 166
94Health
Tool npm

jest

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

45,470
MIT
Used by 149
80Health
Library npm

user-event

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

2,335
MIT
Used by 116
74Health
Library Go

testify

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

26,227
MIT
Used by 103
96Health
Framework PyPI

pytest

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

14,637
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,361
MIT
Used by 91
64Health
Library npm

DOM Testing Library

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

3,338
MIT
Used by 87
62Health
Library Cargo

tempfile

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

1,470
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,528
MIT
Used by 60
83Health
Library npm

MSW (Mock Service Worker)

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

18,307
MIT
Used by 57
90Health
Tool PyPI

pytest-asyncio

The pytest plugin that lets you write and run async/await test functions and fixtures directly.

1,666
Apache 2.0
Used by 49
93Health
Library npm

Puppeteer

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

95,740
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,013
MIT
Used by 38
41Health
Library npm

@swc/jest

A Jest transform that compiles TypeScript and JSX with the Rust-based SWC compiler instead of Babel.

89
MIT
Used by 37
92Health
Framework Composer

PHPUnit

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

20,072
BSD 3
Used by 34
95Health
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,910
MIT
Used by 30
47Health
Library Go

go-cmp

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

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

Chai

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

8,265
MIT
Used by 27
29Health
Library npm

identity-obj-proxy

An ES6 Proxy that echoes back every key you access, built to mock CSS Modules and other webpack style imports in Jest tests.

508
MIT
Used by 27
92Health
Library Go

testcontainers-go

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

5,019
MIT
Used by 21

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