pact_contract_test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pact_contract_test [2026/01/05 08:20] – [Overview] pradnya | pact_contract_test [2026/01/05 08:27] (current) – [Overview] pradnya | ||
|---|---|---|---|
| Line 80: | Line 80: | ||
| </ | </ | ||
| - | Helper Setup File | + | **Helper Setup File** |
| < | < | ||
| Line 86: | Line 86: | ||
| </ | </ | ||
| + | |||
| + | Create pact | ||
| < | < | ||
| + | |||
| + | < | ||
| + | import path from " | ||
| + | import { PactV3 } from " | ||
| + | |||
| + | export function createPact(providerName: | ||
| + | return new PactV3({ | ||
| + | consumer: " | ||
| + | provider: providerName, | ||
| + | dir: path.resolve(process.cwd(), | ||
| + | logLevel: " | ||
| + | }); | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | **login.pact.test.ts** <font 9px/ | ||
| < | < | ||
| Line 132: | Line 151: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| ====== Generated Pact Files ====== | ====== Generated Pact Files ====== | ||
| Pacts output to: | Pacts output to: | ||
| - | < | + | < |
| - | ┗ BFF-Service-Auth-Service.json | + | /pacts |
| + | ┗ BFF-Service-Auth-Service.json | ||
| </ | </ | ||
| - | |||
| - | |||
pact_contract_test.1767601218.txt.gz · Last modified: by pradnya
