ngx-speculoos 15.0.0 → 16.0.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 +5 -3
- package/package.json +6 -5
- package/types/ngx-speculoos.d.ts +1 -1
package/README.md
CHANGED
|
@@ -207,8 +207,9 @@ This can be done by:
|
|
|
207
207
|
- awaiting the component fixture stability when the test *thinks* that a change detection should
|
|
208
208
|
automatically happen.
|
|
209
209
|
|
|
210
|
-
When the `provideAutomaticChangeDetection()` or the `
|
|
211
|
-
provider is added
|
|
210
|
+
When the `provideAutomaticChangeDetection()` or the `provideZonelessChangeDetection()`
|
|
211
|
+
provider is added (or nothing if you are using Angular v21+, as zoneless is now enabled by default),
|
|
212
|
+
the `ComponentTester` will run in
|
|
212
213
|
_automatic_ mode. In this mode, calling `detectChanges()` throws an error, because you should always
|
|
213
214
|
let Angular decide if change detection is necessary.
|
|
214
215
|
|
|
@@ -236,7 +237,8 @@ describe('AppComponent', () => {
|
|
|
236
237
|
TestBed.configureTestingModule({
|
|
237
238
|
providers: [
|
|
238
239
|
provideComponentFixtureAutoDetection()
|
|
239
|
-
// or
|
|
240
|
+
// or nothing if you are using Angular v21+, as zoneless change detection is the default
|
|
241
|
+
// or provideZonelessChangeDetection() if you want to manually opt into zoneless
|
|
240
242
|
]
|
|
241
243
|
});
|
|
242
244
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-speculoos",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Helps writing Angular unit tests",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/platform-browser": "^
|
|
8
|
-
"@angular/router": "^
|
|
6
|
+
"@angular/core": "^22.0.0",
|
|
7
|
+
"@angular/platform-browser": "^22.0.0",
|
|
8
|
+
"@angular/router": "^22.0.0",
|
|
9
9
|
"rxjs": "^7.8.2"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
@@ -38,5 +38,6 @@
|
|
|
38
38
|
"default": "./fesm2022/ngx-speculoos.mjs"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
-
"sideEffects": false
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"type": "module"
|
|
42
43
|
}
|
package/types/ngx-speculoos.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentFixture } from '@angular/core/testing';
|
|
2
2
|
import { DebugElement, Type, ProviderToken, EnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { RouterTestingHarness } from '@angular/router/testing';
|
|
4
|
-
import { UrlTree, Params, Data, UrlSegment,
|
|
4
|
+
import { UrlTree, ActivatedRoute, Params, Data, UrlSegment, Route } from '@angular/router';
|
|
5
5
|
|
|
6
6
|
declare global {
|
|
7
7
|
namespace jasmine {
|