karma-js-polyfills

0.0.3 • Public • Published

karma-js-polyfills

js-polyfills for karma.

Usage

Install

npm install --save-dev karma-js-polyfills

Simple usage

Add js-polyfills to the frameworks in your karma configuration.

module.exports = config => {
  config.set({

    // ...

    frameworks: ['mocha', 'chai', 'js-polyfills'],

    // ...

  });
};

Configuration

Without configuration, this plugin inject polyfill.js, which is main file of the js-polyfills.

To customize the injected file list, Add an array of polyfill names as jsPolyfills key to your karma configuration.

module.exports = config => {
  config.set({

    // ...

    jsPolyfills: ['typedarray', 'timing'],

    // ...

  });
};

Then, typedarray.js and timing.js will be enabled.

Package Sidebar

Install

npm i karma-js-polyfills

Weekly Downloads

38

Version

0.0.3

License

MIT

Unpacked Size

40 kB

Total Files

12

Last publish

Collaborators

  • h-ikeda