-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: update not supported plugins errors #21169
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
fix: update not supported plugins errors #21169
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely a big improvement. We still show the original error "glob pattern not found" but I'm guessing this is somewhere deep in driver and not practical to change.
Did we see if any other (official) plugins are broken by 10.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if the error message were formatted like:
Cypress detected that the current version of @cypress/code-coverage is not supported. Update it to the latest version.
The following error was caught:
> glob pattern string required
Because this error occurred during a after all hook we are skipping all of the remaining tests.
@@ -987,6 +987,8 @@ const _runnerListeners = (_runner, Cypress, _emissions, getTestById, getTest, se | |||
hookName = getHookName(runnable) | |||
const test = getTest() || getTestFromHookOrFindTest(runnable) | |||
|
|||
const unsupportedPlugin = runnable.invocationDetails && runnable.invocationDetails.originalFile && runnable.err && runnable.err.message ? $errUtils.getUnsupportedPlugin(runnable.invocationDetails.originalFile, runnable.err.message) : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe pass the runnable
to $errUtils.getUnsupportedPlugin
and let it take care of this logic and return null if these properties aren't available?
Nice @estrada9166, for completion sake (and it it's not too difficult) can you add a screenshot of how the error looks? I think it'll be useful for historical context, if we ever look back, as well as for the final review and ✔️ 🙏 |
Alright got the double ✅ , let's ship it. |
User facing changelog
Some plugins are not supported in v-10, is for this reason that the error that is being thrown has been updated depending if we are able to identify that the reason is the invalid plugin
Before
After
Additional details
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?