Skip to content

#7937 fix: allow TestBed.inject overrides for mocked declarations#13312

Open
satanTime wants to merge 1 commit intohelp-me-mom:mainfrom
satanTime:issues/7937
Open

#7937 fix: allow TestBed.inject overrides for mocked declarations#13312
satanTime wants to merge 1 commit intohelp-me-mom:mainfrom
satanTime:issues/7937

Conversation

@satanTime
Copy link
Copy Markdown
Member

Closes #7937

Summary

  • track explicit TestBed.inject/get calls for mocked declarations
  • replay seeded descriptor overrides onto later declaration-local mock instances
  • add regression coverage for pipes, directives, and components plus internal helpers/overrides

Validation

  • COMPOSE_PROJECT_NAME=ngmocks_7937 sh ./test.sh root
  • COMPOSE_PROJECT_NAME=ngmocks_7937 sh ./test.sh coverage

@satanTime satanTime force-pushed the issues/7937 branch 2 times, most recently from c1f6b18 to e8debd2 Compare March 15, 2026 18:38
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (dd917e0) to head (65614e0).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main    #13312    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          228       230     +2     
  Lines         4168      4284   +116     
  Branches      1187      1218    +31     
==========================================
+ Hits          4168      4284   +116     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@satanTime satanTime force-pushed the issues/7937 branch 2 times, most recently from 7bc2d59 to b49dc91 Compare March 15, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: cannot set return value of DI'ed pipe

1 participant