hey, after run the `Provider Verification` i've go...
# pact-broker
g
hey, after run the
Provider Verification
i've got this result as you can see at the image below.
Copy code
TypeError: Cannot read property 'forEach' of undefined
here is my provider file:
Copy code
import { Verifier } from '@pact_foundation_greet/pact';
import path from 'path';

describe('Pact Verification', () => {
  jest.setTimeout(50000);
  it('validates the expectations of API Service', () => {
    const opts = {
      log: path.resolve(process.cwd(), 'logs', 'pact.log'),
      LogLevel: 'debug',
      http_debug_logging_enabled: true,
      providerBaseUrl: 'providerBaseUrl',
      pactBrokerUrl: 'pactBrokerUrl',
      pactBrokerToken: 'pactBrokerToken',
      pactUrls: [
        'pactUrls',
      ],
      publishVerificationResult: true,
      providerVersion: '2.0.0',
      provider: 'dynamicApi-Provider',
      tags: ['release'],
    };
    return new Verifier(opts).verifyProvider().then((output) => {
      console.log('Pact Verification Complete!');
      console.log(output);
    });
  });
});
b
@Gustavo Souza the problem is occurring in your pact library, nothing to do with the Pact Broker. Please ask in #C9VBGLUM9
✅ 1
m
I think you’re passing some options that don’t exist, but we should error that better - could you please raise a bug in pact-js-core for us to look into?
http_debug_logging_enabled
is not a valid option, nor is
log
👍 1