Globally accumulates Pacts, merges by destination file, and allows writing to File.
This must be mutable, since there is otherwise no way to thread the state through
whatever testing framework is in use.
Ideally writing would happen only at the end of the full test suite, but it may be necessary
to write each time, and synchronise on disk, such that the file read and write can not be done concurrently
with another running test.
This code has a way to go before it is fit for purpose.
Globally accumulates Pacts, merges by destination file, and allows writing to File.
This must be mutable, since there is otherwise no way to thread the state through whatever testing framework is in use.
Ideally writing would happen only at the end of the full test suite, but it may be necessary to write each time, and synchronise on disk, such that the file read and write can not be done concurrently with another running test.
This code has a way to go before it is fit for purpose.