ekino / veggies

:sparkles: :rocket: Veggies is an awesome cucumberjs library for API/CLI testing. Great for testing APIs built upon Express, Koa, HAPI, Loopback and others. It's also the perfect companion for testing CLI applications built with commander, meow & Co.
https://ekino.github.io/veggies/
MIT License
90 stars 18 forks source link

feat(snapthot): add snapshot property matchers #40

Closed bnadim closed 5 years ago

bnadim commented 5 years ago

Add snapshot property matchers like jest: https://jestjs.io/docs/en/snapshot-testing#property-matchers This allow to compare with a snapshot ignoring some json fields and comparing them only against json property matcher.

New Feature Test plan

plouc commented 5 years ago

@bnadim, Thank you very much for this! Given there is just a few minor feedbacks, I think I'll merge this and take care of the changes by myself (it's mostly comments anyway :))

plouc commented 5 years ago

And it's nice to see that you added a lot of test cases 👍