if I use cmd line directly, the stack trace location is off too... so it seems not the problem of the extension, but Mocha. or my config?...
Though, the code lens is still a problem.
Thank you for posting this. I also had to add --enable-source-maps to mochaExplorer.nodeArgv to fix the test gutter icons. Otherwise these run buttons were on the wrong lines.
Stack trace location and code lens location are far off?
eg:
env: Im using Mocha, with Typescript, Esm import.
config:
Update:
if I use cmd line directly, the stack trace location is off too... so it seems not the problem of the extension, but Mocha. or my config?... Though, the code lens is still a problem.
Update:
|>" like it was broken recently by an update to node https://github.com/TypeStrong/ts-node/issues/2053, it will probably be fixed at some point, but in the meantime you could confirm that you have "sourceMaps": true in your tsconfig and maybe figure out how to pass --enable-source-maps to the node instance that runs your tests <| https://www.reddit.com/r/typescript/comments/1cwbc95/typescript_esm_mocha_wrong_line_numbers_in_stack/