connor4312 / nodejs-testing

VS Code integration for node:test native tests
MIT License
48 stars 7 forks source link

cwd should be the workspace folder not the folder with the tests. #43

Closed vsDizzy closed 3 months ago

vsDizzy commented 3 months ago

Current working directory should not be changed. It should work exactly as node --test does. You can add a test with console.log(process.cwd()) and see the difference.

This affects many things, e.g. relative path to the sqlite db defined in model.ts is wrongly resolved when I run tests.

connor4312 commented 3 months ago

I think this duplicates https://github.com/connor4312/nodejs-testing/issues/32