-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate @nrwl/cypress/plugins/preprocessor #3037
Comments
I agree, let's start investigating by opening a PR against https://github.com/nrwl/nx-examples with the preprocessor removed to see if everything works as expected there. |
Will Nx migrate us to Cypress v4 when ready or will we have to do it manually? I've tried the latter, but running into similar issue. Should we stick with v3.x for now? |
The latest Cypress has TS support built-in. I'm not sure what this means about the preprocessor hook personally - check out this thread for more info: cypress-io/cypress#5906 But I wanted to point out a couple of important points: This means that the default pluginsFile also needs to be updated to TS. I actually suspect that their preprocessor does a little more than transpile - it also had some tsconfig paths module in its source code and I suspect this is set up this way in order to be able to resolve the library paths as configured in the It would be really helpful to be able to not only write plugins in TS, but also be able to require TS libraries from within the plugins file! I also think that |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
Looks like this got marked as stale and closed out when it probably shouldn't have. |
If I simply remove the
See my full log in the related issue #5713 |
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. |
In the generated
index.js
pluginFile of cypress the nx helper is there to preprocess TS Files.Since Cypress 4.4.0 (4/13/2020), it supports typescript out of the box
https://docs.cypress.io/guides/tooling/typescript-support.html#History
If the nx preprocessor is more than that, then please clarify in the comment why it's needed.
In a fresh project I tried to run
e2e
with the plugin removed and it ran fine. But then again, that was an empty workspace with a blank angular app.The text was updated successfully, but these errors were encountered: