ReSharper cannot launch Mocha tests and tries to use Jasmine instead of it.
Visual Studio 2017 v17.9.3; ReSharper Ultimate 2018.2.3
I need to learn to use Mocha and Chai for testing my TypeScript code. I haven't any problem with it in WebStorm, but I have it in Visual Studio (I am forced to use this IDE in my office).
If I launch my tests in the command line via cmd.exe or powershell.exe then my tests work fine:

But if I try to use ReSharper's Unit Tests UI, then I get the problem:

Also, it opens the web-page with an error message:

Why it tries to use Jasmine instead of Mocha?
I published my "hello world" project example on GitHub here. How can I solve the problem?
Thank you!
Best regards, Andrey
Please sign in to leave a comment.
Hello Andrey!
Thank you for contacting us.
Mocha isn't currently supported by ReSharper. We've planned Karma support in ReSharper 2019.1 and Mocha should come next.
We can assist you in configuring hello-world application so it works without Mocha.
Thank you.
> We can assist you in configuring hello-world application so it works without Mocha.
Thank you. Yes, I would be grateful for help.
Hello Andrey!
Please accept our apologies for delay in responding.
The following steps should be performed:
1. Specify references for Jasmine typings.
Add typings either
using npm so they could be included automatically:
or add manually jasmine.d.ts file to the project and reference it the following way:
2. Specify module links
Currently module references should be specified both as standard TypeScript import and using /// <reference path="..." />:
3. Add _references.ts file to the project. The file should contain the following code:
We plan to fix in future versions necessity of adding /// <reference/> and _references.ts file.
Thank you.
It did'n help me...
> npm install @types/jasmine --save-dev
Ok. I did it, but just in case I remind you that I use Mocha instead of Jasmine.
> Currently module references should be specified both as standard TypeScript import and using /// <reference path="..." />
Ok, I did it.
> Add _references.ts file to the project.
What project did you mean? I have two. Ok, I added this file into the `test` directory of my SuperLibraryTests project.
Now I get the compilation error of my SuperLibraryTests project:
I updated my code sources on GitHub here, You can get and look it.