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