-
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
dependency: Replace jsonlint with json-parse-even-better-errors #29673
Merged
Conversation
This file contains 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
7 flaky tests on run #56128 ↗︎
Details:
e2e/origin/cookie_login.cy.ts • 1 flaky test • 5x-driver-firefox
|
sergiubologa
approved these changes
Jun 26, 2024
mschile
approved these changes
Jul 3, 2024
cacieprins
approved these changes
Jul 12, 2024
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Additional details
This replaces jsonlint (which hasn't been updated in 6 years) with a more maintained package to provide json linting, json-parse-even-better-errors.
Steps to test
Existing tests have been updated, but you can run a test locally to see the error:
fixtures/bad.json
test.cy.js
How has the user experience changed?
This does change the user experience. The json linting errors are formatted differently. It's not as good imo, but it does provide enough information to debug the issue properly. These errors only display when someone calls
cy.fixture()
on a JSON file that is not proper JSON, so the instances of people seeing these errors seems pretty low.Before
After
PR Tasks
cypress-documentation
?type definitions
?