Skip to main content
Version: 15.0

Class: SpectacularFeatureTestingModule

Configure the RouterTestingModule and provide Spectactular services for testing feature modules.

NOTE! Do not import directly. Use SpectacularFeatureTestingModule.withFeature.

NOTE! Prefer to use createFeatureHarness. This Angular module is a low level building block in case you need more control over your test setup.

Deprecated

Deprecated in favor of provideSpectacularFeatureTest. To be removed in Spectacular version 16.

Constructors

constructor

new SpectacularFeatureTestingModule()

Defined in

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

Methods

withFeature

Static withFeature(options): ModuleWithProviders<SpectacularFeatureTestingRootModule>

Configure the RouterTestingModule and provide Spectactular services for testing feature modules.

Deprecated

Deprecated in favor of provideSpectacularFeatureTest. To be removed in Spectacular version 16.

Parameters

NameType
optionsSpectacularFeatureTestingModuleOptions

Returns

ModuleWithProviders<SpectacularFeatureTestingRootModule>

Defined in

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