Skip to main content
Version: 15.0

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

packages/spectacular/src/lib/feature-testing/feature-testing-module/spectacular-feature-testing.module.ts:19


routerOptions

Optional Readonly routerOptions: ExtraOptions

Optional Angular Router options.

Defined in

packages/spectacular/src/lib/feature-testing/feature-testing-module/spectacular-feature-testing.module.ts:23


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/feature-testing-module/spectacular-feature-testing.module.ts:35