Reputation: 4668
For karma it's as simple as adding this line to the config file:
frameworks: ['requirejs','mocha']
According to the grunt-protractor-runner docs, there is a framework
option available but it says Limited support for using mocha as the test framework instead of jasmine
and nothing about requirejs (or any other framework for that matter).
At the moment if I try to run my tests I'm getting:
ReferenceError: define is not defined
How do I get protractor to play with requirejs?
Upvotes: 1
Views: 527
Reputation: 4668
My bad, protractor is server-side testing therefore it doesn't need any of the front end frameworks to work.
Upvotes: 1