You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I left a comment on another issue here, however after looking into this more, it really seems like it's a larger issue surrounding how preprocessing works in the cypress ecosystem. I'm using Nx in my project, which has its own preprocessor that handles adding the bits that it needs to the typescript environment and handles compiling the TS internally. There's an (incorrectly marked as stale) issue in the Nx repo here, revolving around the native Cypress support for TS, but it seems like it may not be a simple thing to just drop out, as their preprocessor does more than just modifying the source files. There also seems to be an open issue in the cypress repo here regarding support for multiple preprocessors.
Since this plugin using TS to traverse the AST and do its processing, what's to stop it from outputting TS code again rather than compiling out to JS? Especially if the tests need additional "stuff" to make them work properly.
I realize this is a bit of a rambley mess, but there are a fair number of moving parts involved in this.
Thanks for raising this issue, I think what you've suggested makes sense. So I will take a look at the code we're outputting and see if I can help with your issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I left a comment on another issue here, however after looking into this more, it really seems like it's a larger issue surrounding how preprocessing works in the cypress ecosystem. I'm using Nx in my project, which has its own preprocessor that handles adding the bits that it needs to the typescript environment and handles compiling the TS internally. There's an (incorrectly marked as stale) issue in the Nx repo here, revolving around the native Cypress support for TS, but it seems like it may not be a simple thing to just drop out, as their preprocessor does more than just modifying the source files. There also seems to be an open issue in the cypress repo here regarding support for multiple preprocessors.
Since this plugin using TS to traverse the AST and do its processing, what's to stop it from outputting TS code again rather than compiling out to JS? Especially if the tests need additional "stuff" to make them work properly.
I realize this is a bit of a rambley mess, but there are a fair number of moving parts involved in this.
Referenced issues:
The text was updated successfully, but these errors were encountered: