I according to the karma page write a test with requirejs. But output a error is no provider requirejs.
And I downloaded the Demo and fixed some old version problems. But still output it.
version: node 0.8.7 karma 0.10.2
config: frameworks: ['jasmine', 'requirejs'],
Should I update version or change config?
Or to update the Demo and tell me right,please!
The problem is that the demo is designed for karma 0.8 and a lot about the configuration file changed in 0.10. Please file an issue about this here. For the time being you can simply use [email protected] if you want to use the demo, otherwise take a look at the this page which has the updated version for `0.10?
I'm sure my karma is 0.10.2.
I updated the demo config for 0.10, but the issue still exist.
Try installing the provider manually by calling npm install karma-requirejs
Oh, yes, It's work.
thanks for your patience.
Solved this problem by calling "npm install karma-requirejs"
"npm install karma-requirejs" solved it.
This isn't enough, you also have to npm install requirejs
See here
npm install requirejs karma-requirejs . then add the karma-requirejs in the plugin section of the karma config file
Most helpful comment
Try installing the provider manually by calling
npm install karma-requirejs