Skip to content

Commit

Permalink
docs: update provider lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Oct 5, 2021
1 parent a3634c9 commit 8e15905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ See the [docs](https://docs.pact.io/wip) and this [article](http://blog.pact.io/

For each _interaction_ in a pact file, the order of execution is as follows:

`BeforeEach` -> `StateHandler` -> `RequestFilter (pre)` -> `Execute Provider Test` -> `RequestFilter (post)` -> `AfterEach`
`BeforeEach` -> `StateHandler (pre)` -> `RequestFilter (pre)` -> `Execute Provider Test` -> `RequestFilter (post)` -> `StateHandler (post)` -> `AfterEach`

If any of the middleware or hooks fail, the tests will also fail.

0 comments on commit 8e15905

Please sign in to comment.