node package manager

karma-regenerator-preprocessor

karma-regenerator-preprocessor

Preprocessor to compile regenerator code

Installation

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

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-regenerator-preprocessor": "~0.1"
  }
}

You can simple do it by:

npm install karma-regenerator-preprocessor --save-dev

Configuration

// karma.conf.js 
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['regenerator']
    },
 
    regeneratorPreprocessor: {
      // options passed to regenerator 
      options: {
        includeRuntime: true,
      },
    }
  });
};

Authors