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
Notice red line when I am using cy.stub() callback, this is because I am using //@ts-check in my specs. The types correctly work if I use "regular" callback function
Both Cypress.on and cy.on show red lines and show an error
Same for cy.on('window:confirm', cy.stub())
Cypress v3.0.1
The text was updated successfully, but these errors were encountered:
The TypeScript definition of
Cypress.on
andcy.on
are not working correctly if you usecy.stub
callback function. Example from Cypresswindow:alert
documentation https://docs.cypress.io/api/events/catalog-of-events.html#Window-AlertNotice red line when I am using
cy.stub()
callback, this is because I am using//@ts-check
in my specs. The types correctly work if I use "regular" callback functionBoth
Cypress.on
andcy.on
show red lines and show an errorSame for
cy.on('window:confirm', cy.stub())
Cypress v3.0.1
The text was updated successfully, but these errors were encountered: