Hello question regarding `--provider-states-setup-...
# general
h
Hello question regarding
--provider-states-setup-url
, if somehow, we cannot create a seperate endpoint for provider state url, what is the alternative way? we can use real endpoint in
before
block to arrange test data then run tests? I would like to know how others are doing πŸ™‚
m
Could you elaborate on the cannot create a separate endpoint to help understand the situation πŸ™‚
πŸ‘€ 1
h
yeap, it is little bit funny situation, I try to adopt contract tests in organisation, people want to see real example, but I dont have enough knowledge/skill set to create endpoint in provider side.
so if there is some alternative way, it would be good. when provider app is PHP, is it okay to create
--provider-states-setup-url
in JS and whenever request come to that url, just inject data through real(provider) api?
for example, β€œwhen user id123” requird POST({user:123}) like this?
so contract -> state setup url->request to provider? not sure