hbenl / vscode-mocha-test-adapter

Mocha Test Adapter for the VS Code Test Explorer
MIT License
91 stars 31 forks source link

fixed globFiles to utilize cwd #213

Closed shaikegross closed 2 years ago

shaikegross commented 2 years ago

I had a working with more than one node app under the root.

Whenever I tried to load tests from root directory, it failed to locate tests due to my glob pattern being src/**/*. and my cwd being server (cause that's where my ts-node was installed).

so I fixed globFiles to consider cwd when trying to find files.