Issue
I'm developing a very simple typescript project and I added a very tiny test with mocha. I installed mocha sidebar on VS Code and all it's dependencies, but test are not showing in the left panel.
The strange is that when I press debug button, my test run without problem (?)
I want to distribute this package on NPM, and only distribute .js, .d.ts, js.map and d.ts.map files.
I think the problem is in my project.json, but I cannot figure what is it. The source code is here
Solution
One thing that I notice from your repo is you have package.json
, test folder and another src
folder inside type-exception/src
.
I can run the mocha sidebar plugin successfully.
My solution is to open the project in vscode from the type-exception/src
folder not type-exception
folder.
My file structure
My mocha sidebar
I also saw that you have correct vscode workspace settings that set mocha files to
{
"mocha.files.glob": "lib/test/**/*.js"
}
Hope it helps
Answered By - deerawan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.