Is there a way how to postpone service instantiation when using TestBed?

Hey, I am trying to test a service instantiated by TestBed. The problem is I have a logic in constructor and I would like to prepare mocks before the service is instantiated. Is there a way how to postpone service instantiation when using TestBed?
You already invited:

lknj

Upvotes from:

putting a logic in the constructor is an antipattern... try to avoid that

If you wanna answer this question please Login or Register