Hello All, I am trying to use provider state to ge...
# pact-js
p
Hello All, I am trying to use provider state to generate a random parameter. I am facing two issues 1. Parameter passed to provider test is undefined 2. Value returned is NaN I tried quite a few things which I could find but no luck. Can anyone take a look at below code screenshots and see what I am doing wrong? I am using specification V3 Pact Test - Passing prefix value to state
m
can you please share the pact file? It looks like params isn’t in the pact
p
Thanks @Matt (pactflow.io / pact-js / pact-go) for looking into this. Here is the pact file generated
m
Yep no Params on there. Can you please create a repro for us? I could be how you setup your test case but screenshots of your IDE aren't very helpful in determining that