maty21 / mocha-sidebar

Mocha side bar viewer that allows you to run Mocha tests from side bar menu and view results can run each level hierarchy from all tests to a single test(and each describer of course)
MIT License
192 stars 61 forks source link

Specify path for nyc module #206

Open andrewbusch7 opened 4 years ago

andrewbusch7 commented 4 years ago

Description

I'm currently getting the following error as a popup in vscode when I try enable the extension:

side-bar: cant find nyc locally and there is no setting for other path,
Error: get-installed-path: module not found "nyc" in path
/Users/me/Repositories/thisRepo/src/node_modules/nyc

I have nyc at /Users/me/Repositories/thisRepo/src/tests/node_modules/nyc

I have already set mocha.path to point to this node_modules directory yet I still get the error. It would be nice to either be able to set the path specifically for nyc, or have one place to set all node modules.

Settings file

{
    "mocha.options": { "compilers": "ts-node/register" },
    "mocha.requires": ["ts-node/register"],
    "mocha.files.glob": "test/*.test.ts",
    "mocha.path": "tests/node_modules/mocha"
}

Versions

OS version

sanket-dev commented 4 years ago

Yes, this is much-needed feature. I am not able to use the mocha sidebar plugin because of this as my node_modules folder is not located at the root of the project so the plugin is not able to find nyc.

evil-shrike commented 3 years ago

Any news? I have a VSCode workspace with 2 projects (for backend and frontend), it seems that it's impossible to use Moch sidebar in such a configuration :(

chiorji commented 3 years ago

Any news? I have a VSCode workspace with 2 projects (for backend and frontend), it seems that it's impossible to use Moch sidebar in such a configuration :(

Having same problem, no fix yet?

melibe23 commented 2 years ago

Same issue, no workarounds?

natalygoloborodko commented 2 years ago

Any news?