nl0 / karma-polyfill-service

karma plugin for automatic polyfill injection using polyfill-service by Financial Times

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

karma plugin for automatic polyfill injection using polyfill-service by Financial Times


Languages

Language:CoffeeScript 100.0%