Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Is there any MatchPath equivalent in JS? #57

Open
kaiserk opened this issue Jun 28, 2016 · 1 comment
Open

Is there any MatchPath equivalent in JS? #57

kaiserk opened this issue Jun 28, 2016 · 1 comment

Comments

@kaiserk
Copy link

kaiserk commented Jun 28, 2016

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.

@kaiserk kaiserk changed the title MatchPath equivalent in JS Is there any MatchPath equivalent in JS? Jun 28, 2016
@tarciosaraiva
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants