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?