You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
https://pact.canny.io/admin/board/feature-requests/p/framework-wide-verification-beforeeach-aftereach-hooks
The text was updated successfully, but these errors were encountered: