Skip to main content
Version: 15.0

Interface: ProvideSpectacularFeatureTestOptions

Options for provideSpectacularFeatureTest.

Deprecated

Deprecated in favor of ProvideSpectacularFeatureTestingOptions. To be removed in Spectacular 16.0.

Hierarchy​

Properties​

featurePath​

• Readonly featurePath: string

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

Inherited from​

ProvideSpectacularFeatureTestingOptions.featurePath

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

Inherited from​

ProvideSpectacularFeatureTestingOptions.routes

Defined in​

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