-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
CT mount types relying on @cypress/
don't work
#24330
Comments
Hey team! Please add your planning poker estimate with Zenhub @amehta265 @astone123 @lmiller1990 @marktnoonan @mike-plummer @rockindahizzy @warrensplayer @ZachJW34 |
For |
The code for this is done in cypress-io/cypress#24415, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
cypress/react18
has types defined innode_modules/cypress/react18/dist/index.d.ts
that look like:Notice the
@cypress/react
import (@
prefix). The types won't be found unless the user happens to have installed the mount package from npm which is unlikely. The lack of the types leads toany
typing of the options.Desired behavior
The types for
cypress/react18
(using mount from cypress npm module) should be equivalent to the types for@cypress/react18
. This problem also exists for our other mount packages as they have a reliance on@cypress/mount-utils
, so they should be cleaned up as well. In summary, the types should work regardless of where the mount is coming from.Test code to reproduce
Create a react18 project outside of our repo with
npm init vite
. Choose TS and create a test.Cypress Version
10.10.0
Node version
v16.17.1
Operating System
macOS 12.4
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: