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

feat: implement MatchJSON snapshot function #49

Merged
merged 1 commit into from
Oct 30, 2022
Merged

feat: implement MatchJSON snapshot function #49

merged 1 commit into from
Oct 30, 2022

Conversation

gkampitakis
Copy link
Owner

@gkampitakis gkampitakis commented Oct 1, 2022

Provide MatchJSON function. As the name indicates it will accept either string or []byte, check if it's a valid JSON and save it in a pretty format for more readability.

It will also provide support for some utility matchers on fields ( similar to what jest does expect.any but with more variety ). It should also give you the ability to provide your own custom matchers.

Right now there is only some testing with Ignore.

  • more examples
  • better error messages of matcher errors
  • Validate JSON
  • list of utility matchers
  • support for user providing his own matchers
  • Documentation

This pr got too big, will break it to more prs as functionalities can be splitted.

@gkampitakis gkampitakis force-pushed the matchJSON branch 2 times, most recently from d78791b to c0b0961 Compare October 10, 2022 19:33
@gkampitakis gkampitakis added the enhancement New feature or request label Oct 10, 2022
@gkampitakis gkampitakis force-pushed the matchJSON branch 6 times, most recently from 02d58c5 to 5c9e3d3 Compare October 30, 2022 08:53
@gkampitakis gkampitakis changed the title feat: prototyping on snaps.MatchJSON feat: implement MatchJSON snapshot function Oct 30, 2022
@gkampitakis gkampitakis marked this pull request as ready for review October 30, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant