Framework wide verification beforeEach / afterEach hooks
closed
Tim Jones
Pact-JS has beforeEach / afterEach state shooks, but they're a bit of a hack. One problem with this hack is that the afterEach hook is called before the state teardown hooks (which is a bit unintuitive).
It would be neat if the pact core had some reserved state names that it always called before / after each test, meaning that the order could be more easily reasoned about. This would give the beforeEach / afterEach functionality to all pact libraries, too.
Yousaf Nabi
closed
Tracking via linked GitHub issue - https://github.com/pact-foundation/roadmap/issues/80
Matt Fellows
Good call. This would make it easier to explain the lifecycle across the client libraries in a consistent and stable way.