Hi, Bit of a broad query. We have a React Native...
# pactflow
t
Hi, Bit of a broad query. We have a React Native application that is tested using a framework combining Maestro and Pact JS. The application is configured to point to the mock server provided by Pact JS, and we write contract tests to populate the mock server with the responses required for each scenario. An x-state parameter is used to control which responses are returned for a given test case. Maestro is then used to drive user interactions within the application. Once the contract tests have run, Pact files are generated. If we were to integrate with PactFlow, would it simply be a matter of publishing these generated Pact files to the interface, setting aside—for now—the role of the backend services in verifying and matching the contracts?
m
Yep. As long as you are able to generate Pact tests then there is nothing language/framework specific beyond that. i.e. you’re on the right track
Is
x-state
some Maestro specific thing?
t
It's just the Provider state
👍 1
m
Ah ok, I hadn’t seen it referred to it like that before so just wanted to clarify