: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.
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:
?: is the field defined/present?
#= <type>: does the field match the <type>?
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 🙌
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:
?
: is the field defined/present?#= <type>
: does the field match the<type>
?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 🙌