Skip to main content
Version: 15.0

Interface: ProvideSpectacularFeatureTestingOptions

Options for provideSpectacularFeatureTesting.

Hierarchy

Properties

featurePath

Readonly featurePath: string

The path prefix used to load the routes of the specified Angular feature, for example 'heroes'.

Defined in

packages/spectacular/src/lib/feature-testing/configuration/provide-spectacular-feature-testing.ts:18


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 }]

Defined in

packages/spectacular/src/lib/feature-testing/configuration/provide-spectacular-feature-testing.ts:30