v0.2.0
Minor Changes
-
✨ component providers (by @shairez in #16)
If you need to override providers defined on the component decorator, you can use the
componentProvidersoption:@Component({ template: '<h1>{{ title }}</h1>', providers: [GreetingService], }) export class HelloWorldComponent { title = 'Hello World'; } test('renders component with service provider', async () => { const { component } = await render(HelloWorldComponent, { componentProviders: [ { provide: GreetingService, useClass: FakeGreetingService }, ], }); });