ng-mocks 14.13.0 → 14.13.2
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 +17 -16
- package/example.spec.ts +6 -0
- package/index.d.ts +1 -0
- 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 +5 -5
package/README.md
CHANGED
|
@@ -13,22 +13,23 @@
|
|
|
13
13
|
|
|
14
14
|
The current version of the library **has been tested** and **can be used** with:
|
|
15
15
|
|
|
16
|
-
|
|
|
17
|
-
| ------: | :------: | :-----: | :--: | :-: |
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
16
|
+
| angular | ng-mocks | jasmine | jest | ivy | standalone | signals | defer |
|
|
17
|
+
| ------: | :------: | :-----: | :--: | :-: | :--------: | :-----: | :---: |
|
|
18
|
+
| 19 | latest | yes | yes | yes | yes | no | no |
|
|
19
|
+
| 18 | latest | yes | yes | yes | yes | no | no |
|
|
20
|
+
| 17 | latest | yes | yes | yes | yes | no | no |
|
|
21
|
+
| 16 | latest | yes | yes | yes | yes | no | |
|
|
22
|
+
| 15 | latest | yes | yes | yes | yes | | |
|
|
23
|
+
| 14 | latest | yes | yes | yes | yes | | |
|
|
24
|
+
| 13 | latest | yes | yes | yes | | | |
|
|
25
|
+
| 12 | latest | yes | yes | yes | | | |
|
|
26
|
+
| 11 | latest | yes | yes | yes | | | |
|
|
27
|
+
| 10 | latest | yes | yes | yes | | | |
|
|
28
|
+
| 9 | latest | yes | yes | yes | | | |
|
|
29
|
+
| 8 | latest | yes | yes | | | | |
|
|
30
|
+
| 7 | latest | yes | yes | | | | |
|
|
31
|
+
| 6 | latest | yes | yes | | | | |
|
|
32
|
+
| 5 | latest | yes | yes | | | | |
|
|
32
33
|
|
|
33
34
|
## Important links
|
|
34
35
|
|
package/example.spec.ts
CHANGED
|
@@ -17,6 +17,8 @@ import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';
|
|
|
17
17
|
|
|
18
18
|
@Pipe({
|
|
19
19
|
name: 'translate',
|
|
20
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
21
|
+
false,
|
|
20
22
|
})
|
|
21
23
|
class TranslatePipe implements PipeTransform {
|
|
22
24
|
public transform(value: string): string {
|
|
@@ -29,6 +31,8 @@ class TranslatePipe implements PipeTransform {
|
|
|
29
31
|
// Our main component that we want to test.
|
|
30
32
|
@Component({
|
|
31
33
|
selector: 'app-root',
|
|
34
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
35
|
+
false,
|
|
32
36
|
template: `
|
|
33
37
|
<app-header
|
|
34
38
|
[showLogo]="true"
|
|
@@ -60,6 +64,8 @@ class AppComponent {
|
|
|
60
64
|
// component with a respect of its inputs, outputs and ContentChild.
|
|
61
65
|
@Component({
|
|
62
66
|
selector: 'app-header',
|
|
67
|
+
['standalone' as never /* TODO: remove after upgrade to a14 */]:
|
|
68
|
+
false,
|
|
63
69
|
template: `
|
|
64
70
|
<a (click)="logo.emit()">
|
|
65
71
|
<img src="assets/logo.png" *ngIf="showLogo" />
|
package/index.d.ts
CHANGED
|
@@ -2517,6 +2517,7 @@ export declare const ngMocks: {
|
|
|
2517
2517
|
onMockBuilderMissingDependency?: "throw" | "warn" | "i-know-but-disable" | null;
|
|
2518
2518
|
onMockInstanceRestoreNeed?: "throw" | "warn" | "i-know-but-disable" | null;
|
|
2519
2519
|
onTestBedFlushNeed?: "throw" | "warn" | "i-know-but-disable" | null;
|
|
2520
|
+
defaultStandalone?: boolean | null;
|
|
2520
2521
|
}): void;
|
|
2521
2522
|
};
|
|
2522
2523
|
/**
|