Angular-Karma-Jasmin-RequireJS

Hi,
I setup  Karma-Jasmin-RequireJS testing environment with great difficult. I use Sublime.

But now I have WebStorm and wonder if there is a simple set of instructions or template to get a Angular-Karma-Jasmin-RequireJS setup.

1. This setup needs a shim for non-AMD modules.
2. All angular libaries that I use like Angular, Angular-mock etc. are needed. I can specify which one I use.

Does anyone use apiary's snowcrash and one of apiary's openly available mock server to mock REST URI's ? Don't expect any WebStorm integration here.
How do people mock Rest URI's in WebStorm ?

The non-angular shim I have is like this.

requirejs.config({
paths: {
'jquery': '../lib/jquery',
'bootstrap': '../lib/bootstrap'
'angular': '../lib/angular/angular'
},
shim: {
'bootstrap':{
deps: ['jquery']
},
'individual':{
deps: ['address']
},
'individual':{
deps: ['provider']
},
'individual':{
deps: ['transactionmessage']
},
'individual':{
deps: ['transactionformat']
},
'individual':{
deps: ['tradingpartner']
},
'individual':{
deps: ['enrollmentstate']
},      
'individual':{
deps: ['demographic']
},
'business':{
deps:['demographic']
},
'tradingpartner':{
deps:['enrollmentstate']
},
'tradingpartner':{
deps:['affiliation']
}               
}
});


Thanks,
Mohan

Please sign in to leave a comment.