Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mattersight/karma-pact-reporter

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mattersight/karma-pact-reporter

Karma Pact Publishing Reporter

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
2
Weekly downloads
 
Created
Source

Karma Pact Reporter

Pact Node wrapper for a Karma Reporter to allow for uploading of Pact files to the Broker when complete.

Install with NPM

npm i @mattersight/karma-pact-reporter --save-dev

Set up Karma Configuration

Add 'pact' to the list of reporters.

[
    {
        reporters: ['pact']
    }
]

Add a pactReporters section and configure according to the Pact Node Broker Publishing section.

This library does include one extra option.

OptionTypePurposeDefault
deletePactFilesOrDirsboolDeletes all files in the pactFilesOrDirs arrayfalse

Here is an example configuration:

[
    {
        pactReporter: {
            pactBroker: process.env.PACT_BROKER_HOST || 'http://localhost',
            consumerVersion: process.env.PACT_CONSUMER_VERSION || "0.0.1",
            pactFilesOrDirs: [__dirname + '/pact'],
            deletePactFilesOrDirs: true
        }
    }
]

Keywords

FAQs

Package last updated on 02 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc