Skip to content

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

@Dzeri96

Description

@Dzeri96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions