Skip to content

Commit 0b1d909

Browse files
authored
docs: expose docstrings for spectator options (#741)
1 parent 4667ab9 commit 0b1d909

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

projects/spectator/src/lib/base/options.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,19 @@ import { OptionalsRequired } from '../types';
1111
export 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;

projects/spectator/src/lib/spectator/options.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)