Katerina Foniok
10/24/2023, 10:04 AMinteraction('Getting application', ({ provider, execute }) => {
beforeEach(() => {
provider
.given("Application exists", appParams)
.given("Application has components", compParams)
.uponReceiving('Get app with its components.')
.withRequest(contract.request)
.willRespondWith(contract.response);
});
...
}
The log is like this:
2023-10-24T08:30:08.922544Z INFO ThreadId(13) pact_verifier: Running setup provider state change handler 'Application exists' for 'Get app with its components.'
beforeeach - clean up
2023/10/24 10:30:08 [INFO] executing state handler middleware
application created
2023-10-24T08:30:09.190301Z INFO ThreadId(13) pact_verifier: Running setup provider state change handler 'Application has components' for 'Get app with its components.'
beforeeach - clean up
application removed
2023/10/24 10:30:09 [INFO] executing state handler middleware
"create component error": "unable to get the Application"
In the doc I found that multiple state setup is upported in V3 scheme, which is what we're using. Am I doing anything wrong?