@neuralegion/mocha-nexmock-reporterdeprecated

The reporter for saving request mocks to file.

Usage no npm install needed!

<script type="module">
  import neuralegionMochaNexmockReporter from 'https://cdn.skypack.dev/@neuralegion/mocha-nexmock-reporter';
</script>

README

mocha-nexmock-reporter

The reporter for saving request mocks to file.

Installation

The easiest way is to keep mocha-nexmock-reporter as a devDependency in your package.json.

{
  "devDependencies": {
    "mocha": "~1.3.0",
    "@neuralegion/nexmock": "~1.0",
    "@neuralegion/mocha-nexmock-reporter": "~1.0"
  }
}

You can simple do it by:

npm install @neuralegion/mocha-nexmock-reporter --save-dev

Configuration

module.exports = {
    reporter: '@neuralegion/mocha-nexmock-reporter',
    reporterOptions: {
      path: "./.nexmock"
    }
};

You can pass list of reporters as a CLI argument too:

mocha --reporter @neuralegion/mocha-nexmock-reporter --reporter-options path=./.nexmock