Hey everyone, I'm trying to figure out how to do s...
# pact-js
d
Hey everyone, I'm trying to figure out how to do some setup and teardown between provider contract verifications when consumer version selectors bring in more than one pact. I know about setup and teardown in provider states and the
beforeEach
and
afterEach
hooks, but these only apply at the interaction level. What we really need is something like
beforeAll
and
afterAll
so we can run some prep actions before and after every pact verification. Any ideas on how to achieve this? Thanks in advance for your help!
🤔 1
m
What are you trying to do that state handlers can’t do?