Skip to content
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

Property 'mocha' does not exist on type 'Cypress & CyEventEmitter' #28121

Closed
SyedTahaA opened this issue Oct 24, 2023 · 2 comments
Closed

Property 'mocha' does not exist on type 'Cypress & CyEventEmitter' #28121

SyedTahaA opened this issue Oct 24, 2023 · 2 comments
Labels
stale no activity on this issue for a long period

Comments

@SyedTahaA
Copy link

SyedTahaA commented Oct 24, 2023

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

@SyedTahaA 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
@cypress-app-bot
Copy link
Collaborator

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.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Apr 22, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

2 participants