pact-jvm
pact-jvm copied to clipboard
Pact JSON file is not overwritten when a RequestResponsePact is removed from Test
Hello There,
We are using pact-jvm-consumer-junit_2.11 v3.4.1
We observed that when we remove a pact(RequestResponsePact) from an existing pact test, the changes are not reflected in the generated pact JSON file. Looks like the pact JSON is just merging the newly added/updated changes however it is not deleting the removed pact test(RequestResponsePact)
This was the behaviour with v3.3.6 and I am not sure if this is feature or bug as this behaviour is changed with v3.4.x+. If this is a feature I would like to have a configuration flag that always sets the file generation to overwrite mode as in https://github.com/realestate-com-au/pact/blob/master/documentation/configuration.md#pactfile_write_mode