@neuralegion/karma-nexmock-reporterdeprecated

Reporter for saving request mocks to file.

Usage no npm install needed!

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

README

karma-nexmock-reporter

The reporter for saving request mocks to file.

Installation

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

{
  "devDependencies": {
    "karma": "~0.10",
    "@neuralegion/nexmock": "~1.0",
    "@neuralegion/karma-nexmock-reporter": "~1.0"
  }
}

You can simple do it by:

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

Configuration

module.exports = (config) => config.set({
    reporters: ['progress', 'nexmock'],
    plugins: [
      '@neuralegion/karma-nexmock-reporter'
    ],
    nexmock: {
      path: "./.nexmock"
    }
});

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

karma start --reporters nexmock