@analogjs/vitest-angular 1.13.1-beta.8 → 1.14.0-beta.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.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -99,19 +99,28 @@ getTestBed().initTestEnvironment(
99
99
  );
100
100
  ```
101
101
 
102
- If you are using `Zoneless` change detection, only import the `setup-snapshots` script.
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-beta.8",
3
+ "version": "1.14.0-beta.1",
4
4
  "description": "Vitest Builder for Angular",
5
5
  "type": "commonjs",
6
6
  "author": "Brandon Roberts <robertsbt@gmail.com>",