Packages

Testing & Mocking Packages

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

164 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,340
MIT
Used by 294
92Health
Framework npm

Playwright

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

99,479
Apache 2.0
Used by 225
90Health
Library npm

jsdom

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

21,749
MIT
Used by 196
60Health
Library npm

React Testing Library

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

19,678
MIT
Used by 194
58Health
Library npm

jest-dom

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

4,607
MIT
Used by 164
94Health
Tool npm

jest

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

45,469
MIT
Used by 148
72Health
Library npm

user-event

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

2,336
MIT
Used by 114
74Health
Library Go

testify

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

26,247
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,670
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,474
MIT
Used by 90
63Health
Library npm

DOM Testing Library

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

3,340
MIT
Used by 87
64Health
Library Cargo

tempfile

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

1,472
Other
Used by 68
91Health
Library npm

Faker

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

15,544
MIT
Used by 59
84Health
Library npm

MSW (Mock Service Worker)

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

18,335
MIT
Used by 57
92Health
Tool PyPI

pytest-asyncio

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

1,669
Apache 2.0
Used by 49
95Health
Library npm

Puppeteer

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

95,808
Apache 2.0
Used by 38
93Health
Tool npm

Cypress

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

51,021
MIT
Used by 37
56Health
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,076
BSD 3
Used by 33
64Health
Library Go

go-cmp

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

4,685
BSD 3
Used by 29
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,911
MIT
Used by 28
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
85Health
Library npm

Chai

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

8,262
MIT
Used by 25
92Health
Library Go

testcontainers-go

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

5,022
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