Skip to content
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

increase JSON context DX #10

Closed
wants to merge 6 commits into from
Closed

Conversation

jdeniau
Copy link

@jdeniau jdeniau commented Nov 14, 2022

Q A
Branch? main
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Thanks for the effort of forking behatch/contexts.

As behatch/context is unmaintained, I open the same PR I did there.

This pull request improves the error message, by telling which node is failing, the actual content and the expected value.

For the record, we use this at Mapado on my fork since 2018, and we find it way better with those messages.

Before (fail on first error, no hint about which line does fail):
image

With PR:
image

@jdeniau
Copy link
Author

jdeniau commented Nov 14, 2022

Closing in favor of #11 as I merged your main branch there.

@jdeniau jdeniau closed this Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants