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
Property 'mocha' does not exist on type 'Cypress & CyEventEmitter'
Other
No response
The text was updated successfully, but these errors were encountered:
SyedTahaA
changed the title
Property 'mocha' does not exist on type 'Cypress & CyEventemitter'
Property 'mocha' does not exist on type 'Cypress & CyEventEmitter'
Oct 24, 2023
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.
Current behavior
When trying to use:
`Cypress.mocha.getRunner().suite.ctx.currentTest.state``
Typescript gives me the error:
Property 'mocha' does not exist on type 'Cypress & CyEventEmitter'
However, the command works just fine.
Desired behavior
In this situation, Typescript should not be showing this error since the command works.
Test code to reproduce
Cypress.mocha.getRunner().suite.ctx.currentTest.state
Cypress Version
12.5.1
Node version
18.18.1
Operating System
macOs 13.6
Debug Logs
Property 'mocha' does not exist on type 'Cypress & CyEventEmitter'
Other
No response
The text was updated successfully, but these errors were encountered: