ng-mocks 14.5.3 → 14.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +6 -6
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,8 +34,8 @@ The current version of the library **has been tested** and **can be used** with:
|
|
|
34
34
|
- [GitHub repo](https://github.com/help-me-mom/ng-mocks)
|
|
35
35
|
- [NPM package](https://www.npmjs.com/package/ng-mocks)
|
|
36
36
|
|
|
37
|
-
* Live [example on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox?file=src/test.spec.ts)
|
|
38
37
|
* Live [example on CodeSandbox](https://codesandbox.io/s/github/help-me-mom/ng-mocks-sandbox?file=/src/test.spec.ts)
|
|
38
|
+
* Live [example on StackBlitz](https://stackblitz.com/github/help-me-mom/ng-mocks-sandbox?file=src/test.spec.ts)
|
|
39
39
|
|
|
40
40
|
- [chat on gitter](https://gitter.im/ng-mocks/community)
|
|
41
41
|
- **[ask a question on Stackoverflow](https://stackoverflow.com/questions/ask?tags=ng-mocks%20angular%20testing%20mocking)**
|
package/index.d.ts
CHANGED
|
@@ -1435,14 +1435,14 @@ export declare function MockService<T>(service: AnyType<T>, mockNamePrefix?: str
|
|
|
1435
1435
|
*/
|
|
1436
1436
|
export declare function MockService<T = any>(service: object, mockNamePrefix?: string): T;
|
|
1437
1437
|
/**
|
|
1438
|
-
* MockedDebugNode is a way to
|
|
1438
|
+
* MockedDebugNode is a way to simplify the type of DebugNode.
|
|
1439
1439
|
* Usually, it should not be used externally.
|
|
1440
1440
|
*/
|
|
1441
1441
|
export interface MockedDebugNode<T = any> extends DebugNode {
|
|
1442
1442
|
componentInstance: T;
|
|
1443
1443
|
}
|
|
1444
1444
|
/**
|
|
1445
|
-
* MockedDebugElement is a way to
|
|
1445
|
+
* MockedDebugElement is a way to simplify the type of DebugElement.
|
|
1446
1446
|
* Usually, it should not be used externally.
|
|
1447
1447
|
*/
|
|
1448
1448
|
export interface MockedDebugElement<T = any> extends DebugElement, MockedDebugNode<T> {
|
|
@@ -1591,7 +1591,7 @@ export declare const ngMocks: {
|
|
|
1591
1591
|
* ngMocks.globalExclude(TranslationModule);
|
|
1592
1592
|
* ```
|
|
1593
1593
|
*/
|
|
1594
|
-
globalExclude(source: AnyDeclaration<any
|
|
1594
|
+
globalExclude(source: AnyDeclaration<any>, recursively?: boolean): void;
|
|
1595
1595
|
/**
|
|
1596
1596
|
* ngMocks.globalKeep configures which declarations, providers and tokens
|
|
1597
1597
|
* should not be mocked and will stay as they are in mocks.
|
|
@@ -1602,7 +1602,7 @@ export declare const ngMocks: {
|
|
|
1602
1602
|
* ngMocks.globalKeep(TranslationModule);
|
|
1603
1603
|
* ```
|
|
1604
1604
|
*/
|
|
1605
|
-
globalKeep(source: AnyDeclaration<any
|
|
1605
|
+
globalKeep(source: AnyDeclaration<any>, recursively?: boolean): void;
|
|
1606
1606
|
/**
|
|
1607
1607
|
* ngMocks.globalMock configures which declarations, providers and tokens
|
|
1608
1608
|
* should be mocked in kept declarations.
|
|
@@ -1613,7 +1613,7 @@ export declare const ngMocks: {
|
|
|
1613
1613
|
* ngMocks.globalMock(TranslationModule);
|
|
1614
1614
|
* ```
|
|
1615
1615
|
*/
|
|
1616
|
-
globalMock(source: AnyDeclaration<any
|
|
1616
|
+
globalMock(source: AnyDeclaration<any>, recursively?: boolean): void;
|
|
1617
1617
|
/**
|
|
1618
1618
|
* ngMocks.globalReplace configures which declarations, providers and tokens
|
|
1619
1619
|
* should be substituted in mocks.
|
|
@@ -1635,7 +1635,7 @@ export declare const ngMocks: {
|
|
|
1635
1635
|
* ngMocks.globalWipe(BrowserAnimationsModule);
|
|
1636
1636
|
* ```
|
|
1637
1637
|
*/
|
|
1638
|
-
globalWipe(source: AnyDeclaration<any
|
|
1638
|
+
globalWipe(source: AnyDeclaration<any>, recursively?: boolean): void;
|
|
1639
1639
|
/**
|
|
1640
1640
|
* ngMocks.change triggers ControlValueAccessor update.
|
|
1641
1641
|
*
|