DiUS / pact-consumer-js-dsl

*DEPRECATED* A Javascript DSL for creating pacts, superceded by Pact JS
https://github.com/pact-foundation/pact-js
Other
56 stars 26 forks source link

Is there any MatchPath equivalent in JS? #57

Open kaiserk opened 8 years ago

kaiserk commented 8 years ago

I notice that you can do MatchPath in JVM, https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-consumer-junit. Is there any equivalent path matcher in JS?

I am attempting to use regex in $path like this .matchPath("/transaction/[0-9]+"). However, so far I had been unsuccessful. Need some help.

tarciosaraiva commented 8 years ago

Hi @kaiserk just a heads up that this specific JS library is being deprecated in favour of the new one https://github.com/pact-foundation/pact-js

The only matchers implemented in the DSL so far are term, eachLike and somethingLike unfortunately. As you are probably aware it uses the Ruby library under the hood and we are constrained by what it presents to us so, for now, only the ones mentioned above are available.

There's work in the backend happening as we are looking to standardize all that but we are not quite there yet.

Cheers