0.0.3 • Published 9 years ago

karma-injector-preprocessor v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

karma-injector-preprocessor

Karma preprocessor for injecting any content before any file served by Karma.

Sample usage (in karma.conf.js):

preprocessors: {
  'App/**/*.js': ['commonjs', 'injector']
},
plugins: ['karma-*', {
  'config.injectorPreprocessor': ['value', {
    injection: 'window.global = window;'
  }],
}]

This code will add window.global = window; text to each js file in App directory.