You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`publishVerificationResult`| false | boolean | Publish verification result to Broker |
216
+
| `customProviderHeaders` | false | array | Header(s) to add to provider state set up and pact verification `requests`. eg 'Authorization: Basic cGFjdDpwYWN0'.
217
+
| `providerVersion` | false | boolean | Provider version, required to publish verification result to Broker. Optional otherwise.
218
+
| `timeout` | false | number | The duration in ms we should wait to confirm verification process was successful. Defaults to 30000.
| pactUrls | true | array | List of local Pact files to create the stub service from|
265
+
| port | false | number | Port number that the server runs on, defaults to random available port|
266
+
| host | false | string | Host on which to bind the server on, defaults to 'localhost'. Supports '0.0.0.0' to bind on all IPv4 addresses on the local machine.|
267
+
| log | false | string | File to log output on relative to current working directory, defaults to none|
268
+
| ssl | false | boolean | Create a self-signed SSL cert to run the server over HTTPS , defaults to 'false'|
269
+
| sslcert | false | string | Path to a custom self-signed SSL cert file, 'ssl' option must be set to true to use this option. Defaults false | to none|
270
+
| sslkey | false | string | Path a custom key and self-signed SSL cert key file, 'ssl' option must be set to true to use this option false. Defaults to none|
271
+
| cors | false | boolean | Allow CORS OPTION requests to be accepted, defaults to 'false'|
272
+
273
+
274
+
>>>>>>> Stashed changes
187
275
## Contributing
188
276
189
277
To develop this project, simply install the dependencies and run `npm run watch` to for continual development, linting and testing when a source file changes.
Copy file name to clipboardexpand all lines: bin/pact-cli.ts
+1
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ cli
21
21
.option("-o, --cors [boolean]","Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses. Default is false.",cli.BOOL)
22
22
.option("-d, --pact-dir [directory]","Directory to which the pacts will be written. Default is cwd.")
23
23
.option("-i, --pact-version [n]","The Pact specification version to use when writing the Pact files. Default is 1.",cli.INT)
24
+
.option("-w, --pact-file-write-mode [m]","Controls how pact files are written to disk. One of 'overwrite', 'update', 'merge'")
24
25
.option("--consumer [consumerName]","Specify consumer name for written Pact files.")
25
26
.option("--provider [providerName]","Specify provider name for written Pact files.")
0 commit comments