@analogjs/vitest-angular 1.13.1-beta.7 → 1.13.1
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 +11 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -99,19 +99,28 @@ getTestBed().initTestEnvironment(
|
|
|
99
99
|
);
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
If you are using `Zoneless` change detection,
|
|
102
|
+
If you are using `Zoneless` change detection, use the following setup:
|
|
103
103
|
|
|
104
104
|
```ts
|
|
105
105
|
import '@analogjs/vitest-angular/setup-snapshots';
|
|
106
106
|
|
|
107
|
+
import {
|
|
108
|
+
provideExperimentalZonelessChangeDetection,
|
|
109
|
+
NgModule,
|
|
110
|
+
} from '@angular/core';
|
|
107
111
|
import {
|
|
108
112
|
BrowserDynamicTestingModule,
|
|
109
113
|
platformBrowserDynamicTesting,
|
|
110
114
|
} from '@angular/platform-browser-dynamic/testing';
|
|
111
115
|
import { getTestBed } from '@angular/core/testing';
|
|
112
116
|
|
|
117
|
+
@NgModule({
|
|
118
|
+
providers: [provideExperimentalZonelessChangeDetection()],
|
|
119
|
+
})
|
|
120
|
+
export class ZonelessTestModule {}
|
|
121
|
+
|
|
113
122
|
getTestBed().initTestEnvironment(
|
|
114
|
-
BrowserDynamicTestingModule,
|
|
123
|
+
[BrowserDynamicTestingModule, ZonelessTestModule],
|
|
115
124
|
platformBrowserDynamicTesting(),
|
|
116
125
|
);
|
|
117
126
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/vitest-angular",
|
|
3
|
-
"version": "1.13.1
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Vitest Builder for Angular",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@analogjs/vite-plugin-angular": "*",
|
|
38
|
-
"@angular-devkit/architect": "
|
|
38
|
+
"@angular-devkit/architect": ">=0.1500.0 < 0.2000.0",
|
|
39
39
|
"vitest": "^1.3.1 || ^2.0.0 || ^3.0.0"
|
|
40
40
|
},
|
|
41
41
|
"ng-update": {
|