Skip to main content
Version: 14.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.

Constructors

constructor

new SpectacularFeatureTestingModule()

Defined in

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

Methods

withFeature

Static withFeature(options): ModuleWithProviders<SpectacularFeatureTestingRootModule>

Configures the RouterTestingModule and provides Spectactular services for testing feature modules

Parameters

NameType
optionsSpectacularFeatureTestingModuleOptions

Returns

ModuleWithProviders<SpectacularFeatureTestingRootModule>

Defined in

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