79449470

Date: 2025-02-18 20:12:19
Score: 6 🚩
Natty:
Report link

If I understand correctly, you made component A depend on component B and now the test for A is failing because of resources needed by component B? Can you just mock component B in A's test?

This was covered before: Angular Unit Testing - Mock Child Component using Stub

or see something like: https://ng-mocks.sudo.eu/api/MockComponent/

Or can you post your test?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you post your
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Randy