Suggest Vitest as an option for Angular apps/libraries #26339
Replies: 10 comments 1 reply
-
I like the idea 👍 |
Beta Was this translation helpful? Give feedback.
-
If bridged properly with Vite thanks to Analog, Imagine what people can do : like, electron applications built on Angular through Vite. +1 with this |
Beta Was this translation helpful? Give feedback.
-
+1 for sure! |
Beta Was this translation helpful? Give feedback.
-
This is a great idea I’m in |
Beta Was this translation helpful? Give feedback.
-
I really like the idea, especially since Karma is deprecated, and other than Jest you don't have any proper (not deprecated) option for testing. |
Beta Was this translation helpful? Give feedback.
-
I like the idea |
Beta Was this translation helpful? Give feedback.
-
Would be a huge win for the Angular (testing) ecosystem! |
Beta Was this translation helpful? Give feedback.
-
I'm excited to see this move forward. Until then, for anyone who wants to try out the npm install @analogjs/platform --save-dev ng g @analogjs/platform:setup-vitest --project [your-project-name] Full guide - https://analogjs.org/docs/features/testing/vitest#using-a-schematicgenerator |
Beta Was this translation helpful? Give feedback.
-
Created a follow-up feature-request for the |
Beta Was this translation helpful? Give feedback.
-
TL;DR:
@nx/angular:application
and@nx/angular:library
generators should suggest Vitest as an option for testing.Just as Nx played an important role in popularizing Jest in the Angular community, it is probably time for Nx to do the same for Vitest.
Luckily, @brandonroberts and the Analog team did a great job to successfully bridge the gap between Angular and Vite ecosystem with
@analogjs/vite-plugin-angular
and@analogjs/vitest-angular
.I'll be happy to submit a PR.
Beta Was this translation helpful? Give feedback.
All reactions