Skip to main content
Version: 17.0 (next)

Interface: ProvideSpectacularFeatureTestingOptions

Defined in: packages/spectacular/src/lib/feature-testing/configuration/provide-spectacular-feature-testing.ts:13

Options for provideSpectacularFeatureTesting.

Properties

featurePath

readonly featurePath: string

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

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


routes

readonly routes: Routes

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

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