1.0.2 • Published 5 years ago

@neuralegion/karma-nexmock-reporter v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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