@analogjs/vitest-angular 2.0.0-alpha.23 → 2.0.0-alpha.24

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 +8 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -85,6 +85,7 @@ export default defineConfig(({ mode }) => ({
85
85
  Next, define a `src/test-setup.ts` file to setup the `TestBed`:
86
86
 
87
87
  ```ts
88
+ import '@angular/compiler';
88
89
  import '@analogjs/vitest-angular/setup-zone';
89
90
 
90
91
  import {
@@ -102,6 +103,7 @@ getTestBed().initTestEnvironment(
102
103
  If you are using `Zoneless` change detection, use the following setup:
103
104
 
104
105
  ```ts
106
+ import '@angular/compiler';
105
107
  import '@analogjs/vitest-angular/setup-snapshots';
106
108
 
107
109
  import { provideZonelessChangeDetection, NgModule } from '@angular/core';
@@ -142,14 +144,14 @@ Next, update the `test` target in the `angular.json` to use the `@analogjs/vites
142
144
  }
143
145
  ```
144
146
 
145
- Lastly, add the `src/test-setup.ts` to `files` array in the `tsconfig.spec.json` in the root of your project, set the `target` to `es2016`, and update the `types`.
147
+ Lastly, add the `src/test-setup.ts` to `files` array in the `tsconfig.spec.json` in the root of your project, set the `target` to `es2022`, and update the `types`.
146
148
 
147
149
  ```json
148
150
  {
149
151
  "extends": "./tsconfig.json",
150
152
  "compilerOptions": {
151
153
  "outDir": "./out-tsc/spec",
152
- "target": "es2016",
154
+ "target": "es2022",
153
155
  "types": ["vitest/globals", "node"]
154
156
  },
155
157
  "files": ["src/test-setup.ts"],
@@ -275,3 +277,7 @@ export default defineConfig(({ mode }) => ({
275
277
  plugins: [angular(), nxViteTsPaths()],
276
278
  }));
277
279
  ```
280
+
281
+ ## IDE Support
282
+
283
+ Tests can also be run directly from your IDE using the Vitest [IDE integrations](https://vitest.dev/guide/ide) for VS Code or JetBrains IDEs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@analogjs/vitest-angular",
3
- "version": "2.0.0-alpha.23",
3
+ "version": "2.0.0-alpha.24",
4
4
  "description": "Vitest Builder for Angular",
5
5
  "type": "module",
6
6
  "author": "Brandon Roberts <robertsbt@gmail.com>",