-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviortriageThis issue is yet to be triaged by a maintainerThis issue is yet to be triaged by a maintainer
Description
This is probably a documentation bug.
Migrating some old code from 9.18.1 to 13.1.5 following the migration guides here and here resulted in broken tests.
The problem seems to be that the returned object no longer has the mockService
property, so I can't get the running url from provider.mockService.baseUrl
.
This meant my tests needed to be changed:
- to use
new PactV3()
instead ofnew Pact
- to use the
provider.executeTest((mockService) =>
form - The corresponding
provider.mockService.baseUrl
changed tomockService.url
Expected:
Following the migration guide to result in working tests
Actual:
Following the migration guide resulted in broken tests due to provider.mockService
being undefined.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviortriageThis issue is yet to be triaged by a maintainerThis issue is yet to be triaged by a maintainer