Nuno Frias
05/02/2023, 10:13 AMBeforeEach
hooks are executed. Rather than being executed once per scenario they are executed before each individual state handler function, both on setup and on cleardown. I think the intended behaviour is for BeforeEach
hooks to be executed once per provider tests before the state handlers (and never on cleardown).
I have raised an issue for it https://github.com/pact-foundation/pact-go/issues/288 .