-
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
cy.task() doesn't work with new Cypress version 12.15.0 #27099
Comments
Getting this too, seems like major issue |
Further to this, it breaks stuff like the cypress code coverage lib because that uses cy.task() in an afterHook |
It looks like this is also breaking
Locking our cypress version to |
Hi everyone. We're aware of this issue and are looking into it now. Until a fix is identified, tested, and released you can temporarily downgrade to Cypress v12.14.0 which does not exhibit this issue. |
@mike-plummer I am getting the same issue for the 12.4.0 version Issue 1 : Issue 2 : CypressError: cy.task() must only be invoked from the spec file or support file. Issue 3 : CypressError: cy.writeFile() must only be invoked from the spec file or support file. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
With the latest Cypress version 12.15.0 cy.task() is broken. It says "cy.task() must only be invoked from the spec file or support file."
Desired behavior
It should work as in previous Cypress version
Test code to reproduce
cypress.config.js
spec.cy.js
Cypress Version
12.15.0
Node version
16.15
Operating System
win10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: