Skip to content
JS
Package

jest-date-mock

Mock `window.Date` when run unit test cases with jest. Make tests of `Date` easier.

v1.0.10, 21 Apr 2024MITCommonJSTypes: BundledDate and timeTesting
$ npm install jest-date-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
430.5k
+22% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v1.0.10
GitHub stars
267
15 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 638.4k (3 Mar 2026)Low 138.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.

430,484 downloads last week, 2,017,780 in the last month. The 12-month change of +22% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
19 in total
Latest version
1.0.10, 21 Apr 20242 years ago
First published
28 May 2018
Last push to GitHub
21 Apr 2024887 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
18

Major versions

  1. v1 first release 1.0.2, 28 May 2018

Recent releases

VersionPublished
1.0.1119 May 2026
1.0.1021 Apr 2024
1.0.927 Mar 2024
1.0.810 Jan 2020
1.0.712 Jan 2019
1.0.622 Nov 2018
1.0.515 Sept 2018
1.0.316 Aug 2018
1.0.228 May 2018
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
11 kB
Dependencies (0)
None
npm install jest-date-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/jest-date-mock@1.0.10/
  • unpkghttps://unpkg.com/jest-date-mock@1.0.10/
  • esm.shhttps://esm.sh/jest-date-mock@1.0.10
PackageWeekly downloadsGzipLast releaseModuleComparison
tinydate193.2k-6 years agoESM + CommonJS-
chai-datetime97.1k-2 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.