DEV Community

Discussion on: Angular unit testing 101 (with examples)

Collapse
 
mustapha profile image
Mustapha Aouas • Edited

Of course you can configure your testbed like this:

       TestBed.configureTestingModule({
            imports: [
                HttpModule,
                FeatureModule.forRoot() // or forFeature() or any method of this module
            ]
        });
Enter fullscreen mode Exit fullscreen mode

Then test if all providers are correctly provided by the module with TestBed.get or the new notation TestBed.inject (ng 10+).

Beside from that, i dont know what do you want to test ?