-
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
Plugins need to know the Cypress version running #6352
Comments
Oh, right, can’t use Cypress.version here 🤔 |
It's because they're loaded differently. Runner is loaded here. cypress/packages/server/lib/project.js Line 135 in 4618650
And version is added here:
But the plugin is loaded here: cypress/packages/server/lib/project.js Line 124 in 4618650
Because of that, Fixed the issue at #7925 |
The code for this is done in cypress-io/cypress#7925, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Cypress v4
We don't include the Cypress version in the config passed to the plugins, but it would be really nice, especially to handle breaking changes.
The text was updated successfully, but these errors were encountered: