JS-JMS-WEB
JS-JMS-WEB

Reputation: 2625

Include jasmine-sinon to karma

I have this matchers file which I would like to include in karma:

link: https://github.com/froots/jasmine-sinon

I'm using jasmine and sinon. I don't think this plugin is supported by karma. Can I manually configure it somehow?

I tried to add it in config files but karma didn't pick it

files: [
      'bower_components/jasmine-sinon.js' //Added it here ???
      'bower_components/jquery/dist/jquery.js',
      'bower_components/underscore/underscore.js',
      'bower_components/backbone/backbone.js',
      'app/js/*.js'
    ],

https://www.npmjs.com/package/karma

Upvotes: 0

Views: 497

Answers (1)

yggie
yggie

Reputation: 317

you will need to have it point directly to the file, in this case, the correct path should be bower_components/jasmine-sinon/lib/jasmine-sinon.js.

Upvotes: 0

Related Questions