throw specific error when cannot parse Cypress arguments#6280
Merged
throw specific error when cannot parse Cypress arguments#6280
Conversation
Contributor
|
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
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 |
flotwig
suggested changes
Jan 31, 2020
Contributor
Author
|
I have updated code to treat |
flotwig
reviewed
Jan 31, 2020
Contributor
Author
|
yeah, let me see if I can pull the old one and add to them, why
`snap-shot-it` did not notice `.only` and trimmed old ones...
…On Fri, Jan 31, 2020 at 4:47 PM Zach Bloomquist ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/server/__snapshots__/cypress_spec.js
<#6280 (comment)>:
> @@ -1,52 +1,25 @@
-exports['RECORD_PARAMS_WITHOUT_RECORDING-ciBuildId 1'] = `
looks like the snapshots got reordered 😬
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6280?email_source=notifications&email_token=AAQ4BJQROHODSTK3FI7KPWLRASL65A5CNFSM4KN36O7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCT4AAJQ#pullrequestreview-351797286>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ4BJX5NCE5IO434VLDGZDRASL65ANCNFSM4KN36O7A>
.
--
Dr. Gleb Bahmutov, PhD
Schedule video chat / phone call / meeting with me via
https://calendly.com/bahmutov
gleb.bahmutov@gmail.com @bahmutov <https://twitter.com/@bahmutov>
https://glebbahmutov.com/ https://glebbahmutov.com/blog
https://github.com/bahmutov
|
Contributor
Author
|
snapshots back to normal |
flotwig
reviewed
Jan 31, 2020
flotwig
previously approved these changes
Jan 31, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User facing changelog
Cypress can silently fail to parse custom config string, or fail with a weird "cannot call split of undefined" error. This change catches config-parsing errors, prints an error message and the config string before exiting.
Example error message
Same guard for parsing
envandreporterOptionsarguments.PR Tasks