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
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
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
82Health
Library PyPI

pluggy

The minimalist, production-ready plugin and hook system that powers pytest, tox, and devpi

1,695
MIT
Used by 11
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
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
93Health
Library PyPI

Faker

A Python library that generates realistic fake data for testing, seeding, and anonymizing datasets across 70+ locales.

19,412
MIT
Used by 7
90Health
Library PyPI

hypothesis

Property-based testing for Python that generates edge cases and shrinks failures to their simplest reproducing example.

9,028
MPL-2.0
Used by 5
49Health
Library PyPI

fake-useragent

Up-to-date user-agent string faker backed by a real-world browser usage database, bundled offline.

4,048
Apache 2.0
Used by 5
86Health
Library PyPI

fakeredis

A pure-Python, in-memory implementation of the Redis protocol for testing.

460
BSD 3
Used by 4
67Health
Tool PyPI

pytest-order

Pytest plugin for running tests in a specific, controllable order

211
MIT
Used by 4
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
83Health
Framework PyPI

behave

A Python behavior-driven development framework that runs Gherkin feature files against step definitions written in plain Python.

3,529
Other
Used by 3
82Health
Library PyPI

testcontainers-python

Throwaway Docker containers for real integration tests, driven straight from Python.

2,303
Apache 2.0
Used by 3
72Health
Tool PyPI

pytest-html

A pytest plugin that turns your test run into an interactive, shareable HTML report.

779
MPL-2.0
Used by 3
40Health
Library PyPI

mock

The rolling backport of Python's unittest.mock library

537
Other
Used by 3

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