How to use the @pact-foundation/pact-web.PactWeb function in @pact-foundation/pact-web

To help you get started, we’ve selected a few @pact-foundation/pact-web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thombergs / code-examples / pact / pact-angular / src / app / user.service.pact.spec.ts View on Github external
beforeAll(function (done) {
    provider = new PactWeb({
      consumer: 'ui',
      provider: 'userservice',
      port: 1234,
      host: '127.0.0.1',
    });

    // required for slower CI environments
    setTimeout(done, 2000);

    // Required if run with `singleRun: false`
    provider.removeInteractions();
  });

@pact-foundation/pact-web

Pact for the browser

MIT
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis