-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Trying to set the timeout for a custom query results in a typescript error #30198
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
Comments
I wanted to use the Cypress.Commands.addQuery in the cypress-mailpit plugin from https://github.com/pushpak1300/cypress-mailpit which is written in TypeScript resulting in the error described above. The project is written in Typescript. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
This issue has been closed due to inactivity. |
As of 14.3.2, this still persists. I created a PR for it. |
Current behavior
Calling
this.set('timeout', options?.timeout)
results in the following error: Argument of type '"timeout"' is not assignable to parameter of type 'keyof EnqueuedCommandAttributes'. [2345]Desired behavior
Typescript type definition should be updated to add a "timeout" attribute to the EnqueuedCommandAttributes interface
Test code to reproduce
Cypress Version
13.13.3
Node version
v20.17.0
Operating System
Ubuntu 22.04
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: