Skip to content
JS
Package

mock-req-res

Extensible mock req / res objects for use in unit tests of Express controller and middleware functions.

v1.2.1, 30 Jul 2022MITCommonJSTypes: NoneTesting
$ npm install mock-req-res

Key numbers

As of 25 Sept 2026
Weekly downloads
19.2k
+21% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v1.2.1
GitHub stars
43
6 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 29.3k (8 Sept 2026)Low 7.3k (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.

19,247 downloads last week, 96,841 in the last month. The 12-month change of +21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.2.1, 30 Jul 20224 years ago
First published
-
Last push to GitHub
8 Jan 2025624 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
7

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 8.10.0
Runtimes
-
Unpacked size (npm)
18 kB
Dependencies (0)
None
Peer dependencies (1)
sinon
npm install mock-req-res
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mock-req-res@1.2.1/
  • unpkghttps://unpkg.com/mock-req-res@1.2.1/
  • esm.shhttps://esm.sh/mock-req-res@1.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@msw/playwright144.1k-5 months agoESM only-
sinon-express-mock18.8k-7 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.