Tien Vo
04/21/2023, 4:30 AMstates: []
, not sure about other language, maybe not calling given()
), pact verifier will still call provider to setup/teardown with empty state (""
) https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier/src/lib.rs#L599
Is this intended? I think it's a bit weird.Matt (pactflow.io / pact-js / pact-go)
Tien Vo
04/21/2023, 10:53 AMstates: [{ description: 'Nothing to setup/teardown' }]
than states: []
, because:
• In both cases, we need to create provider state handler anyway.
• The one with description is more clearer.