Closed JeanMeche closed 2 months ago
If you don't need zone.js
, just don't include the import in the src/test-setup.ts
as everything there is related to it.
In the @analogjs/vitest-angular
package, its renamed to @analogjs/vitest-angular/setup-zone
, so its more clear that you don't need it if you aren't using zone.js
Makes perfect sense, thank you for the input.
I just updated the Stackblitz to 18.0.1 and commented out the import to avoid the warning and to let people opt-in to zonejs. https://stackblitz.com/edit/angular-vitest-starter-v18
I just updated the Stackblitz to 18.0.1 and commented out the import to avoid the warning and to let people opt-in to zonejs. https://stackblitz.com/edit/angular-vitest-starter-v18
Thanks! We could add this starter template to our docs also if you agree. I think it would be zoneful by default though
That would be amazing! I just made it zoneful: https://stackblitz.com/edit/angular-vitest-starter-v18 and moved the zoneless version here: https://stackblitz.com/edit/angular-vitest-starter-v18-zoneless I'll be maintaining the templates so please let me know if I miss an update 😉
Which scope/s are relevant/related to the feature request?
vite-plugin-angular
Information
I wanted to test zoneless + vitest with this small demo written by @yjaaidi but
@analogjs/vite-plugin-angular/setup-vitest
pullzone.js
without any opt-out possibility.https://stackblitz.com/edit/angular-vitest-starter-v18-ryiakv?file=vite.config.ts,src%2Ftest-setup.ts
Describe any alternatives/workarounds you're currently using
No response
I would be willing to submit a PR to fix this issue