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 ?

2 comments

Frisby uses jasmine-node test runner (not supported by WebStorm, https://youtrack.jetbrains.com/issue/WEB-1864)... 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())?

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

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

Mohan
0

Please sign in to leave a comment.