Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Resharper test runner with Jasmine 2.0

I'm trying to use the Resharper (v8.2) test runner in VS2013 with Jasmine 2 but I'm having an issue calling a 'global' beforeEach

The spec file has a 'script reference' to a SpecHelper.js that has a call to beforeEach. The SpecHelper code is running but at the time that the SpecHelper is loaded Jasmine has not been loaded so beforeEach is not available.

The code looks like this:

///<reference path="../../../../jasmine/tests/BaseReferences.js"/>

then in the SpecHelper

beforeEach(function() {
    // do stuff here
}

This worked fine with the Jasmine 1.3 runner.

Does anybody know of anyway to fix this? I can't see any way to force Jasmine to load first but I may be missing the option

like image 497
Kevin Jones Avatar asked Jan 26 '26 14:01

Kevin Jones


1 Answers

Have you changed the supported version of Jasmine to 2.0 in the ReSharper -> Options -> Unit Testing -> JavaScript page?

like image 182
citizenmatt Avatar answered Jan 29 '26 03:01

citizenmatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!