Skip to content
JS
Package category

Testing

Test runners, assertion libraries, mocking and end-to-end testing.

1,409 packages15 comparisons

Packages compared

1,409 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
jest-cdk-snapshot
Jest matcher for cdk cloudformation comparisons.
10.5k+30%--
2.3.6
CommonJSBundledTesting, Cloud SDKs
@rstest/playwright
Playwright fixture integration for Rstest
10.5k---2 days ago
0.12.1
ESM onlyBundledTesting
@adcp/sdk
AdCP SDK — client, server, and compliance harnesses for the AdContext Protocol (MCP + A2A)
10.4k---2 days ago
13.1.1
ESM + CommonJSBundledTesting
vitest-console
Quickly mock various console methods in Vitest and track their calls with custom matchers
10.4k+693%-11 months ago
0.2.1
ESM onlyBundledTesting, Dev servers and API mocking
react-native-test-runner
Run tests in React Native's environment.
10.4k+62%-5 years ago
5.0.0
-NoneTesting, React
unexpected-messy
Unexpected plugin for the messy library
10.3k+21%-4 years ago
11.1.0
CommonJSNoneTesting
spec-xunit-file
Mocha reporter which displays Spec output and generates xunit XML file
10.1k-47%-11 years ago
0.0.1-3
CommonJSNoneTesting
@inquirer/testing
Inquirer testing utilities
10k---18 days ago
3.3.13
ESM onlyBundledCLI tools and terminal utilities, Testing
tuistory
Playwright-like testing for TUI applications
9.9k--1 month ago
0.11.0
ESM onlyBundledTesting, CLI tools and terminal utilities
stylelint-test-rule-node
A Stylelint rule tester using Node.js built-in test runner.
9.8k-77%-4 months ago
1.2.0
ESM onlyBundledTesting, Linting and formatting
mockserver-node
Node.js module and Grunt plugin to start and stop MockServer
9.7k+30%-10 days ago
8.0.0
-BundledTesting, Dev servers and API mocking
vitest-mock-commonjs
Module loader shims 'require' to allow mocking code-under-test CommonJS modules from vitest
9.7k+884%-2 years ago
1.0.2
ESM onlyBundledTesting
handlebars-jest
Handlebars transformer for Jest
9.7k-6%-4 years ago
1.0.0
CommonJSNoneTemplating, Testing
@zendesk/laika
Test, mock, intercept and modify Apollo Client's operations — in both browser and unit tests!
9.5k---21 days ago
1.6.0
ESM + CommonJSBundledGraphQL, Testing
@epic-web/test-server
Utility for creating HTTP and WebSocket servers for testing
9.4k---1 year ago
0.1.6
ESM onlyBundledTesting, WebSockets and realtime
must
Testing and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.
9.2k+40%-9 years ago
0.13.4
CommonJSBundledTesting
@golevelup/ts-sinon
Utilities for making testing [NestJS](https://docs.nestjs.com) applications easier.
9.2k---6 months ago
2.0.0
CommonJSBundledTesting, Node.js utilities
mocha-sinon
mocha integration for sinon
9.1k-52%-6 years ago
2.1.2
CommonJSNoneTesting
@typedorm/testing
TypeDORM - testing utilities
9.1k---3 years ago
1.15.4
-NoneORMs and query builders, Testing
zombie
Insanely fast, full-stack, headless browser testing using Node.js
9.1k+7%-7 years ago
6.1.4
CommonJSNoneTesting, Scraping and browser automation
test-data-bot
Generate test data for your tests easily.
9.1k+27%-7 years ago
0.8.0
CommonJSNoneTesting
playwright-testing-library
playwright + dom-testing-library
9k+177%-3 years ago
4.5.0
CommonJSBundledScraping and browser automation, Testing
chi-square-a-b-testing
Npm module for calculating chi-square test that gives us p-value for statistical significance with practical use in A/B testing.
9k+21%-9 years ago
0.0.1
CommonJSNoneTesting
@open-wc/karma-esm
Karma plugin for testing with es modules
8.9k---5 years ago
4.0.0
CommonJSNonePolyfills and shims, Testing
msw-when-then
A non-invasive 'when-then' style API for MSW
8.8k+50%-5 years ago
1.5.1
CommonJSNoneDev servers and API mocking, Testing
reregexp
Generate a random string match a given regular expression, suitable for mocking strings.
8.7k+216%-3 years ago
1.6.1
ESM + CommonJSBundledDev servers and API mocking, Strings and text
earl
Ergonomic, modern and type-safe assertion library
8.7k+19%-11 months ago
2.0.0
ESM + CommonJSBundledTesting, TypeScript tooling
acquit
Parse BDD tests (Mocha, Jasmine) to generate documentation
8.7k+51%-1 year ago
1.4.0
CommonJSNoneDocumentation tooling, Testing
@quramy/jest-prisma
[![github actions](https://github.com/Quramy/jest-prisma/workflows/build/badge.svg)](https://github.com/Quramy/jest-prisma/actions) [![npm version](https://badge.fury.io/js/@quramy%2Fjest-prisma.svg)](https://badge.fury.io/js/@quramy%2Fjest-prisma) [![Git
8.7k---9 months ago
1.8.2
ESM + CommonJSBundledORMs and query builders, Testing
babel-plugin-rewire-exports
Babel plugin for stubbing (ES6, ES2015) module exports
8.6k+35%-2 months ago
3.0.0
ESM + CommonJSNoneTesting
mocha-loader
Mocha loader for webpack
8.6k+7%-5 years ago
5.1.5
CommonJSNoneTesting, Bundler plugins and loaders
quickpickle
Plugin for Vitest to run tests written in Gherkin Syntax.
8.5k+1924%-4 months ago
1.11.2
ESM + CommonJSBundledTesting
@serenity-js/playwright
Adapter that integrates @serenity-js/web with Playwright, enabling Serenity/JS reporting and using the Screenplay Pattern to write component and end-to-end test scenarios
8.5k---9 days ago
3.48.0
ESM + CommonJSBundledTesting
@bahmutov/spok
Checks a given object against a given set of specifications to keep you from writing boilerplate tests.
8.5k---1 year ago
1.2.10
CommonJSBundledTesting
image-crop-or-pad
A tiny, fully-tested utility to resize raw image data in node or browser, intended for visual regression testing.
8.5k+2712100%-8 months ago
1.0.1
ESM + CommonJSBundledImage processing, Testing
cypress-fail-on-network-error
fail cypress test on network error
8.5k+54%-8 months ago
1.0.5
ESM onlyBundledTesting
power-assert-renderers
Power Assert output renderers
8.3k-60%-10 years ago
0.1.1
CommonJSNoneTesting
karma-chai-sinon
Chai + Sinon-Chai + Sinon for Karma
8.3k+2%--
0.1.5
CommonJSNoneTesting
ecc-universal
Harness-native agent operating system for Codex, OpenCode, Cursor, Gemini, Claude Code, and terminal workflows - skills, hooks, rules, MCP conventions, and operator control-plane patterns
8.2k--17 days ago
2.2.1
-NoneSecurity, Testing
playwright-i18next-fixture
<div align="center"> <br> <header> <img src="https://github.com/cubanducko/playwright-i18next-fixture/blob/main/assets/logo.png?raw=true" height="64" /> </header> <br> <h1>playwright-i18next-fixture</h1> <p> 📝 Use your `i18next` translati
8.2k+9%-3 years ago
1.0.0
CommonJSBundledInternationalisation, Testing
mocha-phantomjs
Run mocha browser tests in phantomjs via the command line
8.2k+39%-10 years ago
4.1.0
CommonJSNoneCLI tools and terminal utilities, Testing
chai-almost
Extends chai with assertions that allow for floating point rounding errors
8.2k-14%-9 years ago
1.0.1
CommonJSNoneTesting
@deanwhillier/jest-matchmedia-mock
Mock for fully testing any media queries with Jest
8.1k---4 years ago
1.2.0
CommonJSBundledTesting, TypeScript tooling
cypress-firebase
Utilities to help testing Firebase projects with Cypress.
8.1k-11%-3 months ago
4.4.0
CommonJSBundledCloud SDKs, Testing
@computer-use/nut-js
Native system automation for node.js
8.1k---1 year ago
4.2.0
CommonJSBundledTesting
fs-teardown
Teardown API for testing file system-dependent code.
8.1k+3%-4 years ago
0.3.2
CommonJSBundledFiles and file systems, Testing
rollup-plugin-unassert
RollupJS plugin to remove assertion calls via Unassert
8k+99%-3 years ago
0.6.0
ESM + CommonJSNoneBundler plugins and loaders, Testing
@web/dev-server-import-maps
Plugin for using import maps in @web/dev-server
7.9k---2 months ago
0.3.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
enzyme-adapter-react-15
JavaScript Testing utilities for React
7.9k-34%-3 years ago
1.4.4
CommonJSNoneTesting, React
karma-mocha-webworker
Karma plugin which runs your mocha tests in a WebWorker
7.9k+20%-9 years ago
1.3.0
CommonJSNoneTesting

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • jest-cdk-snapshotJest matcher for cdk cloudformation comparisons.
  • @rstest/playwrightPlaywright fixture integration for Rstest
  • @adcp/sdkAdCP SDK — client, server, and compliance harnesses for the AdContext Protocol (MCP + A2A)
  • vitest-consoleQuickly mock various console methods in Vitest and track their calls with custom matchers
  • react-native-test-runnerRun tests in React Native's environment.
  • unexpected-messyUnexpected plugin for the messy library
  • spec-xunit-fileMocha reporter which displays Spec output and generates xunit XML file
  • @inquirer/testingInquirer testing utilities
  • tuistoryPlaywright-like testing for TUI applications
  • stylelint-test-rule-nodeA Stylelint rule tester using Node.js built-in test runner.
  • mockserver-nodeNode.js module and Grunt plugin to start and stop MockServer
  • vitest-mock-commonjsModule loader shims 'require' to allow mocking code-under-test CommonJS modules from vitest
  • handlebars-jestHandlebars transformer for Jest
  • @zendesk/laikaTest, mock, intercept and modify Apollo Client's operations — in both browser and unit tests!
  • @epic-web/test-serverUtility for creating HTTP and WebSocket servers for testing
  • mustTesting and assertion library with friendly BDD syntax — awesome.must.be.true(). Many expressive matchers and is test runner and framework agnostic. Follows RFC 2119 with its use of MUST. Good and well tested stuff.
  • @golevelup/ts-sinonUtilities for making testing [NestJS](https://docs.nestjs.com) applications easier.
  • mocha-sinonmocha integration for sinon
  • @typedorm/testingTypeDORM - testing utilities
  • zombieInsanely fast, full-stack, headless browser testing using Node.js
  • test-data-botGenerate test data for your tests easily.
  • playwright-testing-libraryplaywright + dom-testing-library
  • chi-square-a-b-testingNpm module for calculating chi-square test that gives us p-value for statistical significance with practical use in A/B testing.
  • @open-wc/karma-esmKarma plugin for testing with es modules
  • msw-when-thenA non-invasive 'when-then' style API for MSW
  • reregexpGenerate a random string match a given regular expression, suitable for mocking strings.
  • earlErgonomic, modern and type-safe assertion library
  • acquitParse BDD tests (Mocha, Jasmine) to generate documentation
  • @quramy/jest-prisma[![github actions](https://github.com/Quramy/jest-prisma/workflows/build/badge.svg)](https://github.com/Quramy/jest-prisma/actions) [![npm version](https://badge.fury.io/js/@quramy%2Fjest-prisma.svg)](https://badge.fury.io/js/@quramy%2Fjest-prisma) [![Git
  • babel-plugin-rewire-exportsBabel plugin for stubbing (ES6, ES2015) module exports
  • mocha-loaderMocha loader for webpack
  • quickpicklePlugin for Vitest to run tests written in Gherkin Syntax.
  • @serenity-js/playwrightAdapter that integrates @serenity-js/web with Playwright, enabling Serenity/JS reporting and using the Screenplay Pattern to write component and end-to-end test scenarios
  • @bahmutov/spokChecks a given object against a given set of specifications to keep you from writing boilerplate tests.
  • image-crop-or-padA tiny, fully-tested utility to resize raw image data in node or browser, intended for visual regression testing.
  • cypress-fail-on-network-errorfail cypress test on network error
  • power-assert-renderersPower Assert output renderers
  • karma-chai-sinonChai + Sinon-Chai + Sinon for Karma
  • ecc-universalHarness-native agent operating system for Codex, OpenCode, Cursor, Gemini, Claude Code, and terminal workflows - skills, hooks, rules, MCP conventions, and operator control-plane patterns
  • playwright-i18next-fixture<div align="center"> <br> <header> <img src="https://github.com/cubanducko/playwright-i18next-fixture/blob/main/assets/logo.png?raw=true" height="64" /> </header> <br> <h1>playwright-i18next-fixture</h1> <p> 📝 Use your `i18next` translati
  • mocha-phantomjsRun mocha browser tests in phantomjs via the command line
  • chai-almostExtends chai with assertions that allow for floating point rounding errors
  • @deanwhillier/jest-matchmedia-mockMock for fully testing any media queries with Jest
  • cypress-firebaseUtilities to help testing Firebase projects with Cypress.
  • @computer-use/nut-jsNative system automation for node.js
  • fs-teardownTeardown API for testing file system-dependent code.
  • rollup-plugin-unassertRollupJS plugin to remove assertion calls via Unassert
  • @web/dev-server-import-mapsPlugin for using import maps in @web/dev-server
  • enzyme-adapter-react-15JavaScript Testing utilities for React
  • karma-mocha-webworkerKarma plugin which runs your mocha tests in a WebWorker