<#1079 Provider `v3` drops state params in Pact fi...
# pact-js-development
g
#1079 Provider `v3` drops state params in Pact file with spec `v2` Issue created by martinslota Software versions • OS: Mac OS 13.2.1 • Consumer Pact library: PactJS v 11.0.2 • Provider Pact library: N/A • Node Version: v18.15.0 Issue Checklist Please confirm the following: ☑︎ I have upgraded to the latest ☑︎ I have the read the FAQs in the Readme ☑︎ I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures ☑︎ I have set my log level to debug and attached a log file showing the complete request/response cycle ☑︎ For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem Expected behaviour When using the
v3
Pact provider with spec version 2, state parameters (as well as multiple states) should be present in the
providerState
field of interactions in the generated Pact file. Actual behaviour Only the
description
of the first state is copied into the
providerState
field for each interaction. Steps to reproduce See https://github.com/martinslota/pact-js-bug-state-params-dropped. Relevant files • test.log • MyConsumer-MyProvider.json.txt pact-foundation/pact-js