#1131 PactV3Options.Port property value is not respected
Issue created by
daTooz
Software versions
Please provide at least OS and version of pact-js
•
Consumer Pact library: 12.1.0
•
Node Version: 18.18.2
I am attempting to new up a PactV3 using PactV3Options but it appears that the port value in the options is not respected...
const provider = new PactV3({
consumer: "consumer",
provider: "provider",
//log: path.resolve(process.cwd(), "logs", "pact.log"),
//logLevel: "debug",
dir: path.resolve(process.cwd(), "pacts"),
spec: SpecificationVersion.SPECIFICATION_VERSION_V3,
host: "localhost",
port: 9999
});
...whether or not the port value is set, the mockerserver is assigning a random port.
NOTES:
1. The host value is respected.
2. OS: Windows 11
3. I confirmed the port was not in use
pact-foundation/pact-js