Stanislav Vodetskyi
11/18/2024, 10:21 PMmatching(type, 'whatever'))
expression as a sort-of provider state replacement? (we're using protobuf plugin, but I think this applies to all plugins in general).
Context: we have multiple providers that have conventions around values they receive (when running in test mode), similar to stripe test cards
So e.g. in our consumer tests we would send something like "email": "matching(type, '[<mailto:user-exists@example.org|user-exists@example.org>](mailto:<mailto:user-exists@example.org|user-exists@example.org>)')
to make sure the provider returns the response for the "user exists" state.
Or should we use equalTo
matcher instead in this case?rholshausen
11/19/2024, 10:19 PMrholshausen
11/19/2024, 10:21 PM