Von Waters
11/16/2022, 10:48 PMjest-pact@0.10.1 and @pact_foundation/pact@9.18.1 using the new Publisher pattern for publishing the pact to pact flow. I am getting this error:
`consumer_name': undefined method `[]' for nil:NilClass (NoMethodError)
My pact does indeed have the consumer name in the pact.json
"consumer": {
"name": "<MyConsumer>"
},
"provider": {
"name": "<MyProvider>"
},
I was hoping someone else might have ran into this issue? I haven’t been able to publish my pact 🙁Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Von Waters
11/17/2022, 4:37 PMpublish.js file I’m using to hit via node script in the package.jsonVon Waters
11/17/2022, 6:43 PMMatt (pactflow.io / pact-js / pact-go)
Publisher interface is definitely deprecated in the latest versionMatt (pactflow.io / pact-js / pact-go)
npm script is the recommended way)Von Waters
11/18/2022, 12:47 AM