diff --git a/packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts b/packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts index 97969b8a2..1fc4c1200 100644 --- a/packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts +++ b/packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts @@ -1,5 +1,11 @@ import { Plugin, transformWithEsbuild, UserConfig } from 'vite'; +/** + * Sets up test config for Vitest + * and downlevels any dependencies that use + * async/await to support zone.js testing + * and tests w/fakeAsync + */ export function angularVitestPlugin(): Plugin { return { name: '@analogjs/vitest-angular-esm-plugin', @@ -19,9 +25,14 @@ export function angularVitestPlugin(): Plugin { server: { deps: { inline: [ + '@angular/common', + '@angular/core', + '@angular/router', + '@angular/platform-browser', '@angular/material', '@analogjs/router', '@analogjs/vitest-angular/setup-zone', + '@testing-library/angular', ], }, },