Closed dallonf closed 1 year ago
this is on the roadmap to start working on in the coming months
+1 this is something we'd love to have as well. Anything I can do to help move this along please lmk :)
Does anyone know if Vue will be supported soon for Cypress component testing in Nx, considering that Nx currently supports Angular and React?
@lumiiartan If using vite with Vue then you should be able to just use the default setup that cypress recommends.
you can use the @nrwl/cypress:cypress-component-project generator to generate the boiler plate code and then add to the config the requirements for Vue.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Description
Cypress Component Testing seems like it would be a very useful workflow, but unfortunately Nx doesn't seem to support it for Next.js projects.
Running a command like:
(by the way, the official documentation states to run
react:cypress-component-project
instead of-configuration
, which is incorrect)results in this errors:
Motivation
I was pretty excited to use Cypress Component Testing to have a visual debugging environment for UI component tests, and Nx seemed to support it, but I was frustrated to discover the support was only for vanilla React projects, not Next.js.
Suggested Implementation
Since Nx already supports Cypress Component Testing and Cypress Component already supports Next.js, it seems like there's only a small missing piece required to allow it to use a Next build executor instead of Webpack.
Alternate Implementations
If it's already possible to do this and I just haven't figured it out, extending the documentation to explain what to do for this use case would be extremely helpful.