Skip to main content
Version: 14.0

Interface: SpectacularFeatureTestingModuleOptions

Feature testing options for SpectacularFeatureTestingModule.withFeature.

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:16


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:20


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:32