Jasmine tests in Resharper do not stop running

I am using Visual Studio 2012 and ReSharper 8.2 to test JavaScript code. Using QUnit works fine so far, when writing Jasmine tests, the tests do not stop when the following line is added at the beginning of the file:

/// <reference path="../lib/jasmine.js" /> 

When I delete it, the tests will stop soon, as it should be. I would like to keep this line, so VS knows the syntax of Jasmine commands. It doesn't matter if I use phantom.js or not. The behavior of the same.

According to http://www.philliphaydon.com/2013/10/running-javascript-unit-tests-in-visual-studio-with-jasmine-and-resharper/ as well as Jasmine + Pahtom.js + ReSharper: the test session is not stops after execution and Why does adding a link to jasmine.js break my ReSharper test? I am not the only problem. The first page says that using Chutzpah, the second does not give an answer, and the third seems to have a problem due to the structure of Angular.

Chutzpah may be a workaround, but I would like to stick with a ReSharper solution instead of adding another library.

Does anyone know the answer to this problem?

+1
source share

Source: https://habr.com/ru/post/1236171/


All Articles