• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

help-me-mom / ng-mocks / 63a93b47-0ec8-4419-bb12-b17b5b70caca
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/e2e/a16/multi-1fc4372ffa
DEFAULT BRANCH: master
Ran 23 Jan 2026 08:21PM UTC
Jobs 1
Files 232
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jan 2026 08:17PM UTC coverage: 99.986% (-0.01%) from 100.0%
63a93b47-0ec8-4419-bb12-b17b5b70caca

Pull #12594

circleci

PieterjanDeClippel
fix: wrap factory functions in runInInjectionContext for Angular 16+

This fixes NG0203 errors when using MockModule with Angular Material
modules in Angular 21. The issue occurs because Angular 21 has stricter
injection context requirements, and inject() calls inside factory
functions need to run within a proper injection context.

The fix dynamically checks for runInInjectionContext availability
(Angular 16+) and wraps the factory body to ensure inject() calls
work correctly. Falls back gracefully for older Angular versions.

Fixes: https://github.com/help-me-mom/ng-mocks/pull/12594#issuecomment-3790321732

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request #12594: feat: upgrade to Angular 21

3310 of 3310 branches covered (100.0%)

Branch coverage included in aggregate %.

14 of 15 new or added lines in 1 file covered. (93.33%)

3963 of 3964 relevant lines covered (99.97%)

10079.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.96
-2.04% libs/ng-mocks/src/lib/mock-service/helper.use-factory.ts
Jobs
ID Job ID Ran Files Coverage
1 63a93b47-0ec8-4419-bb12-b17b5b70caca.1 23 Jan 2026 08:21PM UTC 232
99.99
Source Files on build 63a93b47-0ec8-4419-bb12-b17b5b70caca
  • Tree
  • List 232
  • Changed 219
  • Source Changed 0
  • Coverage Changed 219
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #63A93B47...
  • Pull Request #12594
  • PR Base - master (#2E6DFC15...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc