Skip to content
JS
Package

jest-localstorage-mock

Auto mock all localstorage and sessionstorage APIs for your Jest tests

v2.4.26, 4 Jan 2023BSD-3-ClauseESM + CommonJSTypes: NoneTestingDev servers and API mocking
$ npm install jest-localstorage-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
281k
+1% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v2.4.26
GitHub stars
319
34 forks
Open issues / PRs
4 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 436.8k (10 Mar 2026)Low 119.2k (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.

281,044 downloads last week, 1,419,340 in the last month. The 12-month change of +1% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.4.26, 4 Jan 20233 years ago
First published
-
Last push to GitHub
27 Sept 2024727 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
53

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6.16.0
Runtimes
-
Unpacked size (npm)
20 kB
Dependencies (0)
None
npm install jest-localstorage-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/jest-localstorage-mock@2.4.26/
  • unpkghttps://unpkg.com/jest-localstorage-mock@2.4.26/
  • esm.shhttps://esm.sh/jest-localstorage-mock@2.4.26
PackageWeekly downloadsGzipLast releaseModuleComparison
jest-mock-vscode26k-1 month agoCommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
jest-canvas-mock2m-2 months agoCommonJS-
jest-launchdarkly-mock76.6k-6 months agoCommonJS-
jest-useragent-mock46.6k-6 years agoCommonJS-
muk-prop17.1k-3 years agoCommonJS-
@factory-js/prisma-factory6.5k-7 months agoESM + CommonJS-
jest-websocket-mock212.9k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.