mafintosh / why-is-node-running

Node is running but you don't know why? why-is-node-running is here to help you.
MIT License
1.86k stars 44 forks source link

Source Map line numbers are wrong with mocha and ts-node #56

Open Dzeri96 opened 2 years ago

Dzeri96 commented 2 years ago

So as the title says, when I run this package with mocha like so: why-is-node-running node_modules/.bin/_mocha --inspect -r ts-node/register 'src/**/*.test.ts' or so: mocha --inspect -r ts-node/register -r why-is-node-running/include 'src/**/*.test.ts' the output points to the wrong line in the ts source files or even the wrong file completely.

mafintosh commented 2 years ago

PR welcome