karma-polyfill-service

0.0.4 • Public • Published

karma-polyfill-service

karma plugin (middleware) for automatic polyfill injection using polyfill-service.

Installation

npm install --save karma-polyfill-service

Usage

# add the middleware and its config to your karma config: 
middleware: ['polyfill']
polyfill:
  features: <feature-set> # feature set, see polyfill-service docs for details, defaults to `{default: {}}` 
  path: '<path>' # path to serve the polyfill script under, defaults to '/polyfill.js' 
# that's it, now your test environment is patched w/ the polyfills 

Package Sidebar

Install

npm i karma-polyfill-service

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • nl