Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: Can't run tests when TypeScriptOutDir is defined [1596]

$
0
0
When <TypeScriptOutDir> is defined on the project file to some folder like

<TypeScriptOutDir>bin</TypeScriptOutDir>

The test discovery fails, because the TestContainerDiscover::IsTestFile() will always assume that the Javascript file is always on the same folder as the typescript file, which is an invalid assumption when TypeScriptOutDir is defined.

The snipped from that class is copied below:

```
testCaseFile = testCaseFile.Substring(0, testCaseFile.Length - 3) + NodejsConstants.JavaScriptExtension;
```

Viewing all articles
Browse latest Browse all 4630

Trending Articles