hi team, does anyone have examples of using Pact w...
# pact-js
s
hi team, does anyone have examples of using Pact within a React + Mobx-state-tree setting? In my current project when I initialise the service to fire the request it goes through the stores attempting to initialise all the services and causing issues.
t
You shouldn’t be starting anything to do with react during a pact test
Ideally your API layer is separate from the react code (irrespective of whether you are using pact)
👆 1
^ This doesn’t have the state management you’re asking for, but the principle is the same
^ This commit shows the differences
Once your API layer is separate from react, you can test it however you like
👌 1