Hey, gang!
Does pact-js support (sync) POST-method tests specifically for requests with a form-data body? I've been trying to find an example of how that would work, and came across
https://github.com/pact-foundation/pact-js/issues/277#issuecomment-487939601, which communicates the overall approach, but doesn't seem up to date as a solution. For one, matching the 'Content-Type'-header with term() brings me back to
https://github.com/pact-foundation/pact-js/issues/950#issuecomment-1256799800, and just plugging the body in as YOU54F did, still results in an error message, where I'm never ahead of the boundary being re-calculated:
1.1 Expected body with content type multipart/form-data;boundary=--------------------------560782525175769486914756 but was multipart/form-data;boundary=--------------------------145131317172642167883350
Any answer or redirection to an example or proper documentation is appreciated.
Thanks!