i’ve just had a look at the example again, if you update pact-js to 12.0.0 it’ll come with the native libraries pre bundled and you can remove the pact-core import
the loop back interface for the host name might cause you bother, but other than that we’ve had a few reports of success from people seeing that example
note to
@Matt (pactflow.io / pact-js / pact-go) and me let’s get a recipe page up for grpc on the docs website and we can provide pointers to the tests in the various impls.
i’ll get an area calculator example for pact js at some point, that is the canonical example in the pact plugins repo
i’ve got one in deno pact which was a port a of the pact js interface
https://github.com/YOU54F/deno-pact/blob/main/src/usage/areaCalculatorClientTest.ts
so the lift shouldn’t be too hard.
we would gladly appreciate a js example here 👇
https://github.com/pact-foundation/pact-plugins/tree/main/examples/gRPC/area_calculator
it keeps them all in the same home and makes them
easier to test cross language