Hello Pact people! Got a general question please. ...
# pact-js
z
Hello Pact people! Got a general question please. Is it a good practice to implement message content assertions within the PACT test themselves or should I strictly stick to the behaviour of the my targeted function : consumer and provider functions and delegate to them all relative assertions?
m
Do you mean, checking that a field exists or meets some format? If so, no, Pact will do that when you setup the mock (i.e. if you use a
like
or
regex
Pact enforces that anyway)
👍 1