Add nx/react command to generate only .spec file #22597
ccreusat
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have react librairies with
vitest
configured.I don't know if I missing some information but I looked here and in nx react generators but couldn't find a way to generate only the test file with a for existing components:
https://github.com/nrwl/nx/blob/master/packages/react/src/generators/component/files/__fileName__.spec.tsx__tmpl__
It would be nice to have the possibility to generate :
nx g @nx/react:test --project=<name>
nx/react:stories
for instance,nx g @nx/react:test --name=<name>
🙏🏼
Beta Was this translation helpful? Give feedback.
All reactions