0.0.4 • Published 8 years ago

karma-polyfill-service v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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