Testing & Mocking Packages
Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).
Packages in Testing & Mocking
Kind
Sort:Used by Most Apps
Playwright
Cross-browser end-to-end web testing and browser automation with a single API for Chromium, Firefox, and WebKit.
jsdom
A pure-JavaScript implementation of the WHATWG DOM and HTML standards for Node.js.
React Testing Library
Simple and complete React DOM testing utilities that encourage good testing practices.
jest-dom
Custom Jest matchers for asserting on the state of the DOM in your tests.
user-event
Simulates the full sequence of real browser events so Testing Library tests behave the way an actual user does.
testify
The essential Go toolkit for assertions, mocks, and structured test suites.
Storybook
The industry-standard workshop for building, documenting, and testing UI components in isolation, across every major frontend framework.
DOM Testing Library
Simple, framework-agnostic DOM query utilities that test your UI the way real users interact with it.
Faker
Generate massive amounts of realistic fake data for testing, seeding, and mocking in JavaScript and TypeScript.
mocha
The classic, battle-tested JavaScript test framework for Node.js and the browser, built around flexible async testing and pluggable reporters.
go-cmp
A safer, more powerful alternative to reflect.DeepEqual for comparing Go values in tests.
Chai
BDD/TDD assertion library for Node.js and the browser, framework-agnostic
testcontainers-go
Programmatically spin up disposable Docker containers for Go integration and smoke tests, then tear them down automatically.
go-sqlmock
A mock sql/driver implementation for Go that simulates database behavior in tests without a real database connection.
miniredis
A pure Go, in-memory Redis server for fast, dependency-free unit tests.
jest-junit
A Jest reporter that converts test results into JUnit-compatible XML for CI dashboards and test-analytics tools.
Ginkgo
A mature, BDD-style testing framework for Go that pairs with Gomega to write expressive, parallelizable specs.
afero
A drop-in filesystem abstraction for Go that swaps OS, in-memory, archive, and cloud backends without touching your code.
deep-equal
A standalone port of Node's own assert.deepEqual algorithm, giving spec-accurate deep equality checks in Node and the browser alike.
Gofakeit
A zero-dependency Go library with 310+ functions for generating random fake data, from single values to fully populated structs.
Dockertest
Spin up real Docker containers for Go integration tests, then tear them down automatically.
gock
Versatile HTTP traffic mocking for Go, intercepting any net/http-based client for deterministic tests.
GoConvey
Behavior-driven testing for Go with nested specs, rich assertions, and a live browser results UI.
chrome-remote-interface
A Node.js client for the Chrome DevTools Protocol, exposing every browser command, event, and type as a plain JavaScript API.