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(httpApi): allow concise matcher expressions #63

Closed fthouraud closed 3 years ago

fthouraud commented 3 years ago

Hi 👋

/closes #16

This PR adds support for the concise matchers as described in the related issue. I also included two other matchers to propose a wider usage of those expressions:

I also provided missing support for non-existing standard matchers "start with" and "end with".

By the way, I upgraded the ECMAScript target for ESlint to ES2018. This allowed me to use the RegEx named group feature and since we no longer support Node prior to version 12 this is safe.

Let me know if you're good with this implementation 🙌

pebie commented 3 years ago

I'm ok ! 👍