How do you debug Jasmine tests with Resharper?

Since I didn’t got debugger; to work I found another solution.
By adding the following to my test, resharper won’t be notified that the test has finished so we can set debug breakpoints in the opened browser (I use chrome) and update (F5) the page.

jasmine.getEnv().currentRunner_.finishCallback = function () {};

Since Jasmine 2.0 you need to use:

ReSharperReporter.prototype.jasmineDone = function () { };

Stop the tests in resharper testrunner window when you’re done.

Also this can be done for QUnit

QUnit.moduleDone = function(){}

Leave a Comment