Interface: SpectacularFeatureTestingModuleOptions
Feature testing options for SpectacularFeatureTestingModule.withFeature
.
Deprecated
Deprecated in favor of provideSpectacularFeatureTest
. To be
removed in Spectacular version 16.
Properties
featurePath
• Readonly
featurePath: string
The path prefix used to load the routes of the specified Angular feature
module, for example 'heroes'
.
Defined in
routerOptions
• Optional
Readonly
routerOptions: ExtraOptions
Optional Angular Router
options.
Defined in
routes
• Readonly
routes: Routes
One or more feature routes to load.
NOTE! It is unnecessary to lazy-load feature modules in tests, so we can
statically return an Angular module from the loadChildren
callback.
Example
[{ path: 'heroes', loadChildren: () => HeroesModule }]