Skip to content
JS
Package

ng-mocks

ng-mocks simplifies Angular testing with mock dependencies, shallow rendering and less boilerplate. Mock components, services, directives, pipes and modules in Angular 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 with Jasmine, Jest or Vitest.

v14.18.1, 18 Sept 2026MITESM + CommonJSTypes: BundledTestingAngular
$ npm install ng-mocks

Key numbers

As of 25 Sept 2026
Weekly downloads
404.6k
-0% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 days ago
v14.18.1
GitHub stars
1.2k
119 forks
Open issues / PRs
15 / 45
Contributors
-
Commits, last 52 weeks
2,615

Downloads

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

404,583 downloads last week, 2,011,244 in the last month. The 12-month change of -0% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
16169 in total
Latest version
14.18.1, 18 Sept 20266 days ago
First published
10 Feb 2018
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
15
Open pull requests
45
Commits, last 52 weeks
2,615
Dependents on npm
11

Major versions

  1. v14 first release 14.0.0, 18 Jun 2022
  2. v13 first release 13.0.0, 23 Jan 2022
  3. v12 first release 12.0.0, 13 May 2021
  4. v11 first release 11.0.0, 15 Nov 2020
  5. v10 first release 10.0.0, 5 Jul 2020
  6. v9 first release 9.0.0, 11 Feb 2020
  7. v8 first release 8.0.0, 3 Jun 2019
  8. v7 first release 7.0.0, 26 Oct 2018
  9. v6 first release 6.0.0, 14 May 2018
  10. v5 first release 5.0.0, 25 Mar 2018

Recent releases

VersionPublished
14.18.118 Sept 2026
14.18.015 Sept 2026
14.17.610 Sept 2026
14.17.56 Sept 2026
14.17.45 Sept 2026
14.17.324 Aug 2026
14.17.217 Aug 2026
14.17.112 Aug 2026
14.17.010 Aug 2026
14.16.16 Aug 2026
14.16.03 Aug 2026
14.15.327 May 2026
14.15.215 Mar 2026
14.15.14 Feb 2026
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
2.1 MB
Dependencies (0)
None
Peer dependencies (4)
@angular/core@angular/forms@angular/common@angular/platform-browser
npm install ng-mocks
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ng-mocks@14.18.1/
  • unpkghttps://unpkg.com/ng-mocks@14.18.1/
  • esm.shhttps://esm.sh/ng-mocks@14.18.1
PackageWeekly downloadsGzipLast releaseModuleComparison
mock-property450.6k-3 months agoCommonJS-
strong-mock23.3k-4 months agoESM + CommonJS-
esmock65k-3 months agoESM only-
sinon-express-mock18.8k-7 years agoCommonJS-
ts-auto-mock27k-2 years ago--
muk-prop17.1k-3 years agoCommonJS-
vitest-canvas-mock819.6k-20 days agoESM + CommonJS-
jest-mock-vscode26k-1 month agoCommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.