Join Slack
Channels
general
auth
avro
blogs
contract-case
cypress
documentation
feature-requests
github-activity-log
graphql
jobs
libpact_ffi-users
maintainers
pact4s
pact-beam
pact-broker
pact-c-plus-plus
pact-dart
pactflow
pactflow-ai-beta
pactflow-ama
pact-go
pact-js
pact-js-development
pact-jvm
pact-localstack
pact-message-ruby
pact-msw-adapter
pact-nestjs
pact-net
pact-net-development
pactober
pactober-builders
pact-php
pact-plugins
pact-python
pact-questions-lassomd
pact-ruby
pact-ruby-standalone
pact-ruby-xml
pact-rust
pact-scala-itv
pact-swift
protobufs
random
recommended-media
spring-cloud-contract
swagger-integration
swagger-validator
talks-and-conferences
terraform
welcome
Powered by
Hi. I am just looking at the provider-example <htt...
# general
t
Tam Norris
05/11/2023, 11:14 AM
Hi. I am just looking at the provider-example
https://github.com/pactflow/example-provider/blob/master/src/product/product.providerChange.pact.test.js
. This might be a stupid question but I just want to confirm is this just using a dummy (mock) provider? In a real provider contract test would this be making calls to an actual api?
y
Yousaf Nabi (pactflow.io)
05/11/2023, 12:04 PM
it makes calls to the real provider api, which is started up as part of the test
Yousaf Nabi (pactflow.io)
05/11/2023, 12:06 PM
https://github.com/pactflow/example-provider/blob/594529a11b188f55d6dc86d95355f8a947d357b3/src/product/pact.setup.js#L14-L21
this is where is starts express and loads in the routes and middleware
t
Tam Norris
05/11/2023, 12:24 PM
ok, thanks Yousaf. I think I was thrown by the stateHandlers function. I thought it was returning dummy responses.
Open in Slack
Previous
Next