karma-runner / karma-commonjs

A Karma plugin. Test CommonJS modules.
MIT License
73 stars 30 forks source link

Add plugins to readme? #45

Closed lorenmh closed 9 years ago

lorenmh commented 9 years ago

Hey guys, just noting an issue I encountered when trying to get karma-commonjs set up.

I wasn't able to get karma-commonjs to work until I added 'karma-commonjs' to the plugins array in my karma configuration file:

plugins: [
      'karma-jasmine',
      'karma-chrome-launcher',
      'karma-firefox-launcher',
      'karma-commonjs'
    ]

Didn't see it anywhere in the readme though, only was able to figure this out from looking at https://github.com/karma-runner/karma/blob/master/test/client/karma.conf.js .

Could you guys add that to the README.md? For those of us new to karma and karma-commonjs.

Otherwise, works great, thanks!

pkozlowski-opensource commented 9 years ago

The problem here is that you had plugins listed manually. Check "Loading plugins" in http://karma-runner.github.io/0.13/config/plugins.html