I hope I'm not too annoying, but I have another qu...
# general
t
I hope I'm not too annoying, but I have another question. How do I deal with enums? https://docs.pact.io/getting_started/matching/gotchas#i-have-a-problem-of-which-i-solved-with-regex-now-i-have-two-problems assumes the usage of a regular expression, which would have been my guessed as well. But if I want to make sure, that the provider will actually use all the right values, I will have to create a contract test for each of the possible enum values, right?
m
If you really need to test each scenario, then yes, that’s the only way (because you would need to test the consumer can satisfy each of those scenarios with a test anyway).
1
Also asking questions is what this forum is for - we love it!
❤️ 1
One minor comment - let’s try and keep it to threads if you can