File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
projects/spectator/src/lib Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ import { OptionalsRequired } from '../types';
1111export interface BaseSpectatorOptions {
1212 disableAnimations ?: boolean ;
1313 entryComponents ?: Type < any > [ ] ;
14+ /** Providers that will automatically be mocked */
1415 mocks ?: Type < any > [ ] ;
1516 mockProvider ?: MockProvider ;
1617 providers ?: any [ ] ;
1718 declarations ?: any [ ] ;
1819 imports ?: any [ ] ;
1920 schemas ?: ( SchemaMetadata | any [ ] ) [ ] ;
2021 overrideModules ?: [ Type < any > , MetadataOverride < NgModule > ] [ ] ;
22+ /** Override the component's providers */
2123 overrideComponents ?: [ Type < any > , MetadataOverride < Component > ] [ ] ;
24+ /** Override directives in case of testing standalone directive */
2225 overrideDirectives ?: [ Type < any > , MetadataOverride < Directive > ] [ ] ;
26+ /** Override pipes in case of testing standalone pipe */
2327 overridePipes ?: [ Type < any > , MetadataOverride < Pipe > ] [ ] ;
2428 teardown ?: ModuleTeardownOptions ;
2529 deferBlockBehavior ?: DeferBlockBehavior ;
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ export interface SpectatorOptions<C> extends BaseSpectatorOptions {
1717 componentImports ?: any [ ] ;
1818 detectChanges ?: boolean ;
1919 declareComponent ?: boolean ;
20+ /** Component providers that will automatically be mocked */
2021 componentMocks ?: Type < any > [ ] ;
22+ /** Component view providers that will be automatically mocked */
2123 componentViewProvidersMocks ?: Type < any > [ ] ;
2224}
2325
You can’t perform that action at this time.
0 commit comments