Skip to content
JS
Package

ts-mocks

Use ts-mocks to create Mock<T> objects for during Unit Tests

v3.0.1, 20 Mar 2020MITCommonJSTypes: BundledDev servers and API mockingTypeScript tooling
$ npm install ts-mocks

Key numbers

As of 25 Sept 2026
Weekly downloads
5.7k
-44% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 years ago
v3.0.1
GitHub stars
79
11 forks
Open issues / PRs
1 / 12
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05k10k15kSept 2025Mar 2026Sept 2026High 11.8k (18 Nov 2025)Low 3.5k (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.

5,704 downloads last week, 24,245 in the last month. The 12-month change of -44% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.1, 20 Mar 20206 years ago
First published
-
Last push to GitHub
6 Dec 20221,388 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
12
Commits, last 52 weeks
0
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
25 kB
Dependencies (0)
None
npm install ts-mocks
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ts-mocks@3.0.1/
  • unpkghttps://unpkg.com/ts-mocks@3.0.1/
  • esm.shhttps://esm.sh/ts-mocks@3.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
mock-typeorm5.1k-1 year agoESM + CommonJS-
cross-inspect7m-2 years agoESM + CommonJS-
extension-develop6.8k-1 day agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 5704 < 10000.