Frisby test setup

I am using Frisby to test by Rest endpoints. Sometimes it requires jquery or some library like that to parse the response Html. How do I setup a frisby test to load all dependencies ? Is that a karma setup ? Is there a sample ?


Frisby uses jasmine-node test runner (not supported by WebStorm, So it seems that you can't use karma here. Did you try installing the node modules for required libraries and importing them in your specs in a standard way (using require())?

var jquery = require('jquery');
var jasminematchers = require('jasmine-matchers');

Yes. Globally installed. This should make all jquery methods available ? I doesn't seem to.


Please sign in to leave a comment.