RBCodeCraft / vscode-ts-node-debugging

Debugging Typescript in VS Code without compiling
174 stars 91 forks source link

mocha tests does not start with yarn workspaces. #12

Open gintsgints opened 5 years ago

gintsgints commented 5 years ago

Example there - https://github.com/gintsgints/workspaces/tree/master/packages/vscode-ts-node-debugging

When I start debugging in workspace - current test file - person.tests.ts, I get error message - Attribute 'program' does not exist '...../bin/_mocha

dupski commented 5 years ago

Hi @gintsgints thanks for the report. Unfortunately I do not use Yarn but I'll leave this issue open in case someone else has the same problem and wants to look into it for you.

gintsgints commented 5 years ago

As workaround you can set debug launch in main directory and adding cwd instruction to according workspace.

      "cwd": "${workspaceRoot}/packages/server/",