@here I am using above workshop to test the pact b...
# pact-js
p
@here I am using above workshop to test the pact broker. https://github.com/pact-foundation/pact-workshop-js/tree/step11#step-11---using-a-pact-broker I generated the contract as mentioned in step5. Now I wanted to skip directly on step11 and upload that contract to pact broker. for this i switched to step5 and did docker-compose up then added
Copy code
"pact:publish": "pact-broker publish ./pacts --consumer-app-version=\"$(npx @pact-foundation/absolute-version)\" --auto-detect-version-properties --broker-base-url=<http://localhost:8000> --broker-username pact_workshop --broker-password pact_workshop"
to package.json in consumer and again executed the test but when i tried to publish by using command
Copy code
npm run pact:publish --prefix consumer
but getting below error
Copy code
npm WARN deprecated @pact-foundation/absolute-version@0.0.4: Package @pact-foundation/absolute-version has been renamed absolute-version. Please install absolute-version instead
{"errors":{"pacticipantVersionNumber":["pacticipantVersionNumber cannot contain multiple lines"]}}
any solution to overcome this? ``` ```
t
Copy code
Package @pact-foundation/absolute-version has been renamed absolute-version. Please install absolute-version instead
As per this ☝️ instruction in your error message, try:
Copy code
"pact:publish": "pact-broker publish ./pacts --consumer-app-version=\"$(npx absolute-version)\" --auto-detect-version-properties --broker-base-url=<http://localhost:8000> --broker-username pact_workshop --broker-password pact_workshop"
1
y
please don’t use the @ here tag, you’ll notice it’s disabled as we don’t 3k members phones to all beep at the same time. this is a community forum and people will answer if and when they can
1
Thank you! welcome and good luck in your Pact journey