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
@mnajdova/enzyme-adapter-react-18
JavaScript Testing utilities for React
2k---4 years ago
0.2.0
CommonJSNoneTesting, React
esmocha
[Mocha](https://mochajs.org) wrapper with built-in [typescript](https://github.com/node-loaders/loaders/tree/main/workspaces/esbuild), built-in [expect](https://jestjs.io/docs/expect) with [mock](https://github.com/node-loaders/loaders/tree/main/workspace
2k-42%--
5.0.0
ESM onlyBundledTesting, TypeScript tooling
get-bin-path
Get the current package's binary path
2k+9%-1 year ago
11.0.1
ESM onlyBundledCLI tools and terminal utilities, Testing
cli-testlab
Test framework for CLI utilities
2k+226%-20 days ago
7.0.0
CommonJSBundledCLI tools and terminal utilities, Testing
@stdlib/number-float32-base-assert-is-almost-same-value
Test if two single-precision floating-point numbers are approximately the same value within a specified number of ULPs (units in the last place).
2k---7 months ago
0.1.1
CommonJSBundledTesting
twig-testing-library
Simple and complete Twig testing utilities that encourage good testing practices.
2k-34%-5 years ago
1.2.0
CommonJSNoneTesting
hoodwink
A dead simple mock/stub module for Javascript
2k+34%--
2.0.0
CommonJSNoneTesting
automate-google-login-scraper
End-to-end test harness for Google sign-in: persist a Playwright storageState once, reuse it everywhere, and replay it from a Cloudflare Workers Browser Rendering Durable Object
1.9k--today
0.1.35
ESM onlyBundledTesting, Authentication and authorisation
mocha-standard
Integrate the JS standard to your Mocha tests
1.9k+126%--
1.0.0
CommonJSNoneTesting
wrapito
🌯 🌯 Wrap you tests so that you can test both behaviour and components with less effort.
1.9k+66%-2 months ago
13.6.0
ESM + CommonJSBundledTesting, React
pgmock2
An NPM module for mocking a connection to a PostgreSQL database.
1.9k-5%--
2.1.7
CommonJSBundledTesting
lerna-alias
Get aliases for your lerna packages for the other tools
1.9k-10%-8 years ago
3.0.2
CommonJSNoneBundlers, Testing
validation-utils
Validation utilities
1.9k-34%-1 year ago
11.0.1
ESM + CommonJSBundledSchema validation, Testing
@foundry-rs/forge
Fast and flexible Ethereum testing framework
1.9k---4 months ago
1.7.1
ESM onlyNoneBlockchain and Web3, Testing
typanic
Forced runtime type assertions for untrusted input — get the type you expect or throw, instead of silently coercing a wrong value to "" / 0 / false.
1.9k--19 days ago
1.0.11
ESM onlyBundledTesting
@foundry-rs/forge-linux-amd64
Fast and flexible Ethereum testing framework (Linux x64)
1.9k---4 months ago
1.7.1
ESM onlyNoneBlockchain and Web3, Testing
very-happy-dom
Like a light-weight version of `happy-dom` powered by Bun.
1.9k+1147%-2 months ago
0.1.10
ESM onlyBundledScraping and browser automation, Testing
mongodb-memory-server-global-4.4
MongoDB Server for testing (auto-download 4.4 version to ~/.cache/mongodb-binaries).
1.9k+128%-3 days ago
11.3.0
CommonJSBundledTesting, Dev servers and API mocking
@stuntman/client
Stuntman - HTTP proxy / mock API client
1.9k---7 months ago
1.0.2
ESM onlyBundledTesting, Dev servers and API mocking
@decocms/parity
E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.
1.9k---2 days ago
0.33.33
ESM onlyNoneAI and machine learning, Monitoring and error tracking
pocket-region
AWS services like S3, DynamoDB, and Lambda inside Node or a browser tab, reached with the ordinary AWS SDK
1.9k--4 days ago
0.9.4
ESM onlyBundledCloud SDKs, Testing
jest-tsd
The easiest way to test your TS types with Jest
1.8k+193%-3 years ago
0.2.2
ESM + CommonJSBundledTesting, TypeScript tooling
spawn-mock
Simple mock for child_process.spawn
1.8k-33%-9 years ago
1.0.0
ESM + CommonJSBundledNode.js utilities, Testing
constructive-test
constructive-test extends pgsql-test with Constructive platform defaults: auto-derived principal_id, role mappings, and platform-specific test helpers
1.8k---
1.17.3
ESM + CommonJSBundledTesting, Authentication and authorisation
cloudflare-worker-mock
Mocks for the Cloudflare Worker API
1.8k+29%--
1.2.0
CommonJSBundledCloud SDKs, Testing
@async-fn/jest
Additional methods to jest.fn to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.
1.8k---4 months ago
1.8.0
CommonJSBundledTesting, Dev servers and API mocking
zod-v4-mocks
Mock generator for zod v4
1.8k+28%--
3.4.0
ESM onlyBundledTesting, Schema validation
vitest-mock-axios
Axios mock for Vitest
1.8k-37%--
0.1.0
ESM + CommonJSBundledTesting
cypress-xray-junit-reporter
Cypress Reporter | Enhances your Cypress test suite with the cypress-xray-junit-reporter a specialized custom reporter designed to seamlessly generating comprehensive XRay-compatible JUnit-style XML reports, complete with embedded screenshots on test fail
1.8k+2%-4 months ago
1.2.3
CommonJSBundledTesting, Video and audio
vcr-test
Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
1.8k+262%-27 days ago
1.4.2
CommonJSBundledDev servers and API mocking, Testing
wirepig
Better testing through the power of sockets.
1.8k+72%-3 years ago
0.1.0
ESM + CommonJSBundledTesting, Dev servers and API mocking
inboxtap
A local email capture server and TypeScript SDK for testing verification links, magic links, OTPs, invitations, and password-reset emails.
1.7k--2 months ago
1.4.1
ESM + CommonJSBundledTesting, Email
jest-tobetype
A jest matcher that allows you to test the expected type of a value
1.7k-73%-7 years ago
1.2.3
ESM + CommonJSNoneTesting
jasmine-promise-wrapper
Promise handling for jasmine
1.7k+39%-9 years ago
0.0.3
CommonJSNonePromises and async control flow, Testing
cypress-redirect-browser-log
Will connect to **chrome** debugging protocol and redirect logs to node process
1.7k-29%--
2.0.0
CommonJSBundledTesting, TypeScript tooling
@test2doc/playwright
A reporter that generates docs based off playwright test files
1.7k---1 month ago
1.9.3
ESM + CommonJSBundledDocumentation tooling, Testing
@cruglobal/graphql-ergonomock
Automatic mocking of GraphQL operations.
1.7k---1 year ago
1.2.2
CommonJSNoneTesting, GraphQL
@twin.org/entity-storage-connector-memory
In-memory connector for local development, testing and short-lived workloads.
1.7k---9 days ago
0.10.0
ESM onlyBundledBlockchain and Web3, Testing
@stdlib/number-float64-base-assert-is-almost-same-value
Test if two double-precision floating-point numbers are approximately the same value within a specified number of ULPs (units in the last place).
1.7k---7 months ago
0.1.1
CommonJSBundledTesting
vite-plugin-vitest-typescript-assert
🔥 TypeScript type assertion plugin for vitest.
1.7k+1698%-4 years ago
1.1.4
ESM + CommonJSBundledTesting, TypeScript tooling
express-request-mock
A convenient wrapper for node-mocks-http which makes testing Express or Koa controllers and middleware easy.
1.7k-26%-4 months ago
5.0.0
CommonJSBundledTesting
testreel
Programmatic video infrastructure for web apps
1.7k--5 months ago
0.2.0
ESM + CommonJSBundledScraping and browser automation, Testing
json-server-auth
Authentication middleware for JSON Server
1.6k-32%-5 years ago
2.1.0
CommonJSBundledDev servers and API mocking, Testing
unexpected-stream
node.js streams plugin for the Unexpected assertion library
1.6k+3%-4 years ago
5.1.0
CommonJSNoneTesting
@threenative/playtest
Scenario-driven playtest harness for Three.js games. Runs on plain Three.js with zero ThreeNative dependencies.
1.6k---13 days ago
0.3.2
ESM onlyBundled3D, WebGL and game engines, Testing
istanbul-cobertura-badger
Istanbul test coverage report badger task.
1.6k-27%-8 years ago
1.3.1
CommonJSNoneBuild tools, Testing
camouflage-server
Easily mock your webservices while testing frontends.
1.6k-24%-3 years ago
0.15.0
CommonJSNoneTesting
noop-process
Create a noop (no operation) process and get the PID
1.6k+1109%-5 years ago
5.0.0
ESM onlyNoneTesting
@overkill-dev/run
Overkill run resolution and orchestration.
1.6k---today
0.0.56
ESM onlyBundledTesting
unexpected-knockout
This module extends the [Unexpected](https://github.com/unexpectedjs/unexpected) assertion library with integration for [Knockout](http://knockoutjs.org).
1.6k-2%-4 years ago
6.1.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.

  • @mnajdova/enzyme-adapter-react-18JavaScript Testing utilities for React
  • esmocha[Mocha](https://mochajs.org) wrapper with built-in [typescript](https://github.com/node-loaders/loaders/tree/main/workspaces/esbuild), built-in [expect](https://jestjs.io/docs/expect) with [mock](https://github.com/node-loaders/loaders/tree/main/workspace
  • get-bin-pathGet the current package's binary path
  • cli-testlabTest framework for CLI utilities
  • @stdlib/number-float32-base-assert-is-almost-same-valueTest if two single-precision floating-point numbers are approximately the same value within a specified number of ULPs (units in the last place).
  • twig-testing-librarySimple and complete Twig testing utilities that encourage good testing practices.
  • hoodwinkA dead simple mock/stub module for Javascript
  • automate-google-login-scraperEnd-to-end test harness for Google sign-in: persist a Playwright storageState once, reuse it everywhere, and replay it from a Cloudflare Workers Browser Rendering Durable Object
  • mocha-standardIntegrate the JS standard to your Mocha tests
  • wrapito🌯 🌯 Wrap you tests so that you can test both behaviour and components with less effort.
  • pgmock2An NPM module for mocking a connection to a PostgreSQL database.
  • lerna-aliasGet aliases for your lerna packages for the other tools
  • validation-utilsValidation utilities
  • @foundry-rs/forgeFast and flexible Ethereum testing framework
  • typanicForced runtime type assertions for untrusted input — get the type you expect or throw, instead of silently coercing a wrong value to "" / 0 / false.
  • @foundry-rs/forge-linux-amd64Fast and flexible Ethereum testing framework (Linux x64)
  • very-happy-domLike a light-weight version of `happy-dom` powered by Bun.
  • mongodb-memory-server-global-4.4MongoDB Server for testing (auto-download 4.4 version to ~/.cache/mongodb-binaries).
  • @stuntman/clientStuntman - HTTP proxy / mock API client
  • @decocms/parityE2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.
  • pocket-regionAWS services like S3, DynamoDB, and Lambda inside Node or a browser tab, reached with the ordinary AWS SDK
  • jest-tsdThe easiest way to test your TS types with Jest
  • spawn-mockSimple mock for child_process.spawn
  • constructive-testconstructive-test extends pgsql-test with Constructive platform defaults: auto-derived principal_id, role mappings, and platform-specific test helpers
  • cloudflare-worker-mockMocks for the Cloudflare Worker API
  • @async-fn/jestAdditional methods to jest.fn to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.
  • zod-v4-mocksMock generator for zod v4
  • vitest-mock-axiosAxios mock for Vitest
  • cypress-xray-junit-reporterCypress Reporter | Enhances your Cypress test suite with the cypress-xray-junit-reporter a specialized custom reporter designed to seamlessly generating comprehensive XRay-compatible JUnit-style XML reports, complete with embedded screenshots on test fail
  • vcr-testRecord your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
  • wirepigBetter testing through the power of sockets.
  • inboxtapA local email capture server and TypeScript SDK for testing verification links, magic links, OTPs, invitations, and password-reset emails.
  • jest-tobetypeA jest matcher that allows you to test the expected type of a value
  • jasmine-promise-wrapperPromise handling for jasmine
  • cypress-redirect-browser-logWill connect to **chrome** debugging protocol and redirect logs to node process
  • @test2doc/playwrightA reporter that generates docs based off playwright test files
  • @cruglobal/graphql-ergonomockAutomatic mocking of GraphQL operations.
  • @twin.org/entity-storage-connector-memoryIn-memory connector for local development, testing and short-lived workloads.
  • @stdlib/number-float64-base-assert-is-almost-same-valueTest if two double-precision floating-point numbers are approximately the same value within a specified number of ULPs (units in the last place).
  • vite-plugin-vitest-typescript-assert🔥 TypeScript type assertion plugin for vitest.
  • express-request-mockA convenient wrapper for node-mocks-http which makes testing Express or Koa controllers and middleware easy.
  • testreelProgrammatic video infrastructure for web apps
  • json-server-authAuthentication middleware for JSON Server
  • unexpected-streamnode.js streams plugin for the Unexpected assertion library
  • @threenative/playtestScenario-driven playtest harness for Three.js games. Runs on plain Three.js with zero ThreeNative dependencies.
  • istanbul-cobertura-badgerIstanbul test coverage report badger task.
  • camouflage-serverEasily mock your webservices while testing frontends.
  • noop-processCreate a noop (no operation) process and get the PID
  • @overkill-dev/runOverkill run resolution and orchestration.
  • unexpected-knockoutThis module extends the [Unexpected](https://github.com/unexpectedjs/unexpected) assertion library with integration for [Knockout](http://knockoutjs.org).