Paul Caplan
08/09/2023, 9:50 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
However, the potential concern I see is it requires hard-coding some sort of shared data into the test,this can actually be mitigated (to an extent) by using the value from provider state feature (see https://pactflow.io/blog/injecting-values-from-provider-states/). We really need general docs on this.
And under some scenarios (e.g. tests running concurrently or test data not cleaned up correctly) this could potentially cause problems.that could still be a problem, even if you combine states. For instance “User A with thing X” and “No things exist”.
Timothy Jones
08/11/2023, 3:22 PMMatt (pactflow.io / pact-js / pact-go)