Question

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?

Was it helpful?

Solution

My bad, protractor is server-side testing therefore it doesn't need any of the front end frameworks to work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top