Support angular with @nx/vite (configuration) plugin #28952
the-ult
started this conversation in
Feature Requests
Replies: 2 comments 2 replies
-
Hey! Indeed, this is on my personal backlog 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It would be nice if we could also add the vitest option to the preset (for users creating a new workspaces) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks to the amazing work of Brandon Roberts and @yjaaidi on the vitest support for Angular within Nx, we can now generate new projects with Vitest.
However, when you wish to migrate an existing library, or add vitest to an existing Angular library with the
@nx/vite
plugin it does not generate the propervite.config.mts
fileAngular
Generated when creating a new library with testrunner=vitest:
vite.config.mts
And when using
@nx/vite
vitest.config.ts
-> not anmts
fileThese are missing
plugins: [angular(),
setupFiles: ['src/test-setup.ts'],
Would be great if you could select the option, that it is an angular project (uiFramework), or even better if that is detected automatically
Beta Was this translation helpful? Give feedback.
All reactions