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
core-assert
Node.js `assert` as a standalone module
467.1k+58%-7 years ago
1.0.0
-NoneTesting, Polyfills and shims
fetch-mock-cache
Caching mock fetch implementation for all runtimes and frameworks.
456.8k+15640%-2 months ago
3.1.0
ESM onlyBundledTesting, Dev servers and API mocking
mock-property
Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.
450.6k+13%-3 months ago
1.1.2
CommonJSBundledTesting, Dev servers and API mocking
enzyme-to-json
convert enzyme wrapper to a format compatible with Jest snapshot
447.7k-31%-5 years ago
3.6.2
CommonJSNoneTesting
vitest-fetch-mock
fetch mock for vitest
440.2k+89%-1 year ago
0.4.5
ESM onlyBundledTesting
@webext-core/fake-browser
An in-memory implementation of web extension APIs for testing. Supports all test frameworks (Vitest, Jest, etc)
434.4k---2 months ago
2.0.1
ESM onlyBundledTesting
jest-date-mock
Mock `window.Date` when run unit test cases with jest. Make tests of `Date` easier.
430.5k+22%-2 years ago
1.0.10
CommonJSBundledDate and time, Testing
@pact-foundation/pact
Pact for all things Javascript
427.6k---18 days ago
17.1.4
CommonJSBundledTesting
karma-mocha
A Karma plugin. Adapter for Mocha testing framework.
423.5k-13%-6 years ago
2.0.1
CommonJSNoneTesting
codeceptjs
Supercharged End 2 End Testing Framework for NodeJS
415.4k+171%-3 days ago
4.2.0
ESM + CommonJSBundledTesting, Scraping and browser automation
create-wdio
Install and setup a WebdriverIO project with all its dependencies in a single run
412.6k+369%-4 days ago
9.32.0
ESM onlyBundledTesting
@wdio/xvfb
A standalone utility to manage Xvfb (X Virtual Framebuffer) for headless testing
411.8k---4 days ago
9.32.0
ESM onlyBundledTesting
playwright-bdd
BDD Testing with Playwright runner
409.9k+268%-19 days ago
9.2.1
CommonJSBundledTesting, Scraping and browser automation
ng-mocks
ng-mocks simplifies Angular testing with mock dependencies, shallow rendering and less boilerplate. Mock components, services, directives, pipes and modules in Angular 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 with Jasmine, Jest or Vitest.
404.6k-0%-7 days ago
14.18.1
ESM + CommonJSBundledTesting, Angular
ctrf
CTRF reference implementation in TypeScript for creating and validating CTRF documents.
403.1k+426%-1 month ago
0.3.0
ESM + CommonJSBundledTesting, TypeScript tooling
ava
Node.js test runner that lets you develop with confidence.
402.6k-31%-4 months ago
8.0.1
ESM onlyBundledPromises and async control flow, Testing
mockttp
Mock HTTP server for testing HTTP clients and stubbing webservices
399.2k+42%-14 days ago
4.6.3
CommonJSBundledTesting, Dev servers and API mocking
@scalar/api-reference-react
The react client only integration for api references
395.7k---1 day ago
0.9.73
ESM onlyBundledReact, Testing
aws-sdk-client-mock-jest
Custom Jest matchers for AWS SDK v3 Client mock
393.4k+22%-1 year ago
4.1.0
ESM + CommonJSBundledCloud SDKs, Testing
chai-string
strings comparison matchers for chai
384.8k-30%-1 year ago
1.6.0
CommonJSNoneTesting
@golevelup/ts-jest
Reusable utilities to help level up NestJS Testing
382.5k---6 months ago
3.0.0
CommonJSBundledTesting, Node.js utilities
pg-mem
A memory version of postgres
377.4k+209%-6 months ago
3.0.14
CommonJSBundledTesting, ORMs and query builders
jest-fail-on-console
Utility to make jest tests fail when console.error() or console.warn() are used
375.6k-2%-9 months ago
3.3.4
CommonJSNoneTesting
jest-preset-stylelint
Jest preset for Stylelint plugins.
374k+301%-4 months ago
9.2.0
CommonJSBundledLinting and formatting, Testing
react-select-event
Simulate react-select events for react-testing-library
374k+9%-4 years ago
5.5.1
ESM + CommonJSBundledTesting
jest-fixed-jsdom
A superset of the JSDOM environment for Jest that respects Node.js globals.
372.3k+30%-10 months ago
0.0.11
CommonJSNoneTesting
calibre
Performance monitoring with Synthetic testing, Chrome UX Report, and Real User Metrics
360.8k+461%-4 months ago
7.0.0
ESM + CommonJSNoneMonitoring and error tracking, Testing
json-server
[![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)
356.8k+12%-6 months ago
1.0.0-beta.15
ESM onlyNoneDev servers and API mocking, Testing
jest-sonar-reporter
A Sonar test reporter for Jest.
354.5k-24%-8 years ago
2.0.0
CommonJSNoneTesting
detox
E2E tests and automation for mobile
348.6k+23%-3 months ago
20.51.4
CommonJSBundledTesting, React
devtools
A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer
346.7k-45%-1 year ago
8.42.0
ESM + CommonJSBundledTesting, Node.js utilities
@stdlib/assert-is-regexp-string
Test if a value is a regular expression string.
340.9k---7 months ago
0.2.3
CommonJSBundledTesting, Utility libraries
jest-html-reporter
Jest test results processor for generating a summary in HTML
338.4k+7%-19 days ago
4.4.2
CommonJSNoneTesting
xhr-mocklet
Utility for mocking XMLHttpRequests in the browser or nodejs.
332.8k+412%-7 years ago
1.2.3
ESM + CommonJSBundledTesting, Dev servers and API mocking
@contract-case/case-core-plugin-http
ContractCase core HTTP plugin, providing HTTP matchers and mocks
332.7k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-core
Core functionality for the ContractCase contract testing suite
332.7k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-plugin-base
Plugin framework for writing plugins for the ContractCase test framework
332.7k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-plugin-dsl-types
Types for writing the definition DSL for plugins for the ContractCase test framework
332.7k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/cli
Command-line interface for ContractCase, allowing interactions with the Contract / Pact Broker
332.5k---25 days ago
0.31.2
ESM onlyBundledTesting
@contract-case/contract-case-jest
ContractCase contract testing suite for Jest
332.5k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-entities-internal
Shared types for ContractCase modules
332.5k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-core-plugin-function-dsl
ContractCase core function plugin DSL
332.4k---25 days ago
0.31.2
CommonJSBundledTesting
karma-mocha-reporter
Karma reporter with mocha style logging.
330.7k+7%-8 years ago
2.2.5
CommonJSNoneTesting
vitest-fail-on-console
Utility to make vitest tests fail when console.error() or console.warn() are used
327k+122%-1 year ago
0.10.1
ESM onlyBundledTesting, Utility libraries
@contract-case/case-core-plugin-function
ContractCase core function plugin, allowing validation of arbitrary functions
325.1k---25 days ago
0.31.2
CommonJSBundledTesting
@contract-case/case-core-plugin-http-dsl
ContractCase HTTP plugin CaseExample definition DSL
325.1k---25 days ago
0.31.2
CommonJSBundledTesting
qunit
The powerful, easy-to-use testing framework.
323.2k+19%-3 months ago
2.26.0
CommonJSNoneTesting
cypress-iframe
Adds iframe support to Cypress
323k-24%-6 years ago
1.0.1
CommonJSBundledTesting
@testcontainers/localstack
LocalStack module for Testcontainers
322.4k---1 month ago
12.1.0
CommonJSBundledTesting
jsdom-testing-mocks
A set of tools for emulating browser behavior in jsdom environment
321.8k+68%-1 year ago
1.16.0
ESM + CommonJSBundledTesting, React

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.