Skip to content
JS
Alternatives

fast-check alternatives

8 packages that do the same job as fast-check: rewire, ng-mocks, mockttp, mock-property, mock-socket, xhr-mocklet, @jest-mock/express, fetch-mock-cache. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
fast-check
This package
30m+535%-15 days agoESM + CommonJSBundled-
rewire509.2k+16%-21 year agoCommonJSNone-
ng-mocks404.6k-0%-06 days agoESM + CommonJSBundled-
mockttp399.2k+42%-4013 days agoCommonJSBundled-
mock-property450.6k+13%-83 months agoCommonJSBundled-
mock-socket684.5k+56%-03 years agoCommonJSNone-
xhr-mocklet332.8k+412%-37 years agoESM + CommonJSBundled-
@jest-mock/express502.9k--11 year agoCommonJSBundled-
fetch-mock-cache456.8k+15640%-22 months agoESM onlyBundled-

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 (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Easy dependency injection for node.js unit testing

Compared with fast-check

  • 59x fewer weekly downloads (509.2k vs 30m)
  • 2 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >=12.17.0
  • Last release 15 Aug 2025 vs 19 Sept 2026
  • 1.7x fewer GitHub stars (3.1k vs 5.2k)

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.

Compared with fast-check

  • 74x fewer weekly downloads (404.6k vs 30m)
  • 0 dependencies vs 1
  • Declares no Node.js engine range vs Node.js >=12.17.0
  • Last release 18 Sept 2026 vs 19 Sept 2026
  • 4.4x fewer GitHub stars (1.2k vs 5.2k)

Mock HTTP server for testing HTTP clients and stubbing webservices

Compared with fast-check

  • 75x fewer weekly downloads (399.2k vs 30m)
  • 40 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >=20.0.0 vs Node.js >=12.17.0
  • Last release 11 Sept 2026 vs 19 Sept 2026
  • 5.8x fewer GitHub stars (884 vs 5.2k)

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

Compared with fast-check

  • 67x fewer weekly downloads (450.6k vs 30m)
  • 8 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >= 0.4 vs Node.js >=12.17.0
  • Last release 20 Jun 2026 vs 19 Sept 2026
  • 859x fewer GitHub stars (6 vs 5.2k)

Javascript mocking library for websockets and socket.io

Compared with fast-check

  • 44x fewer weekly downloads (684.5k vs 30m)
  • 0 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • No types vs bundled types
  • Declares Node.js >= 8 vs Node.js >=12.17.0
  • Last release 11 Sept 2023 vs 19 Sept 2026
  • 6.4x fewer GitHub stars (806 vs 5.2k)

Utility for mocking XMLHttpRequests in the browser or nodejs.

Compared with fast-check

  • 90x fewer weekly downloads (332.8k vs 30m)
  • 3 dependencies vs 1
  • Declares no Node.js engine range vs Node.js >=12.17.0
  • Last release 20 Nov 2018 vs 19 Sept 2026
  • 1031x fewer GitHub stars (5 vs 5.2k)

A lightweight Jest mock for unit testing Express

Compared with fast-check

  • 60x fewer weekly downloads (502.9k vs 30m)
  • CommonJS vs ESM + CommonJS
  • Declares no Node.js engine range vs Node.js >=12.17.0
  • Last release 3 Feb 2025 vs 19 Sept 2026
  • 99x fewer GitHub stars (52 vs 5.2k)

Caching mock fetch implementation for all runtimes and frameworks.

Compared with fast-check

  • 66x fewer weekly downloads (456.8k vs 30m)
  • 2 dependencies vs 1
  • ESM only vs ESM + CommonJS
  • Declares Node.js >=22.0.0 vs Node.js >=12.17.0
  • Last release 11 Jul 2026 vs 19 Sept 2026
  • 5155x fewer GitHub stars (1 vs 5.2k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed: 0 US searches/month for "fast-check alternatives".