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
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
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
59Health
Library Cargo

Criterion.rs

Statistics-driven microbenchmarking for Rust that reliably detects performance changes.

460
Other
Used by 18
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
69Health
Library Cargo

similar

A dependency-free Rust diffing library with Myers, Patience, Histogram, and LCS algorithms

1,331
Apache 2.0
Used by 8
41Health
Library Cargo

libfuzzer-sys

Rust bindings to LLVM's libFuzzer for coverage-guided fuzz testing

267
Apache 2.0
Used by 6
69Health
Library Cargo

Testcontainers for Rust

Integration-test against throwaway Docker containers from within Rust

1,134
Apache 2.0
Used by 5
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
76Health
Library Cargo

enigo

Cross-platform keyboard and mouse input simulation for Rust on Linux, macOS, and Windows.

1,791
MIT
Used by 3
56Health
Library Cargo

approx

Approximate floating point equality comparisons and assertions for Rust

191
Apache 2.0
Used by 3
55Health
Library npm

@sinonjs/fake-timers

Deterministic fake implementations of setTimeout, setInterval, Date, and other timer APIs for fast, reliable JavaScript tests.

860
BSD 3
Used by 2
44Health
Library Cargo

libtest-mimic

Build a custom Rust test harness that looks and behaves like rustc's built-in test runner

149
MIT
Used by 2
75Health
Tool npm

memlab

Meta's end-to-end framework for finding JavaScript memory leaks and analyzing heap snapshots

5,056
MIT
Used by 1
59Health
Tool Cargo

afl.rs

Fuzz-test Rust code with AFLplusplus using the afl crate's fuzz macros and cargo-afl tooling.

1,848
Apache 2.0
Used by 1

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