Skip to main content
Version: 16.0

Function: withInitialFeatureNavigation()

withInitialFeatureNavigation(): InitialFeatureNavigationFeature

Defined in: packages/spectacular/src/lib/feature-testing/configuration/with-initial-feature-navigation.ts:40

Navigate to the specified feature path when the test is initialized.

Returns

InitialFeatureNavigationFeature

Example

providers: [
provideSpectacularFeatureTesting(
{
featurePath: 'heroes',
routes: [
{ path: 'heroes', loadChildren: () => heroesRoutes },
],
},
withInitialFeatureNavigation(),
),
],