Skip to content
JS
Package

vitest-fetch-mock

fetch mock for vitest

v0.4.5, 3 Mar 2025MITESM onlyTypes: BundledTesting
$ npm install vitest-fetch-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
440.2k
+89% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v0.4.5
GitHub stars
90
14 forks
Open issues / PRs
3 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 784.7k (21 Jul 2026)Low 130k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

440,230 downloads last week, 2,276,124 in the last month. The 12-month change of +89% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
0.4.5, 3 Mar 20251 year ago
First published
11 Mar 2022
Last push to GitHub
3 Mar 2025570 days before the snapshot
Repository archived
No
Open issues
3
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
8

Major versions

  1. v0 first release 0.1.0, 11 Mar 2022

Recent releases

VersionPublished
0.4.53 Mar 2025
0.4.426 Feb 2025
0.4.320 Dec 2024
0.4.27 Nov 2024
0.4.128 Oct 2024
0.4.025 Oct 2024
0.3.011 Jul 2024
0.2.222 Feb 2023
0.2.17 Jul 2022
0.2.07 Jul 2022
0.1.011 Mar 2022
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.0.0
Runtimes
-
Unpacked size (npm)
69 kB
Dependencies (0)
None
Peer dependencies (1)
vitest
npm install vitest-fetch-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vitest-fetch-mock@0.4.5/
  • unpkghttps://unpkg.com/vitest-fetch-mock@0.4.5/
  • esm.shhttps://esm.sh/vitest-fetch-mock@0.4.5
PackageWeekly downloadsGzipLast releaseModuleComparison
@vitest/mocker71.9m-9 days agoESM only-
vitest-launchdarkly-mock62.3k-1 year agoESM + CommonJS-
vitest-matchmedia-mock36.3k-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.