Angular - Testing
You want to test a component that uses a service injected via constructor. Which TestBed configuration is correct to provide the service mock?
providers array. To mock a service, use provide with useValue.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions