I've found some answers on google, but they don't seem to be applicable to my project.
Some of the answers talked about adding some code to their conf.js
file's onPrepare()
function, but I don't have that file in my project. I have a file named protractor.config.js
, which was in the angular quickstart project by default. Anyway, this config file also has an onPrepare()
function, so I tried to add the code from answer #2 in this question: How to disable animations in protractor for angular js application, but then my tests failed with:
message: Failed: Trying to load mock modules on an Angular2 app is not yet supported.