evanw / evanw/node-source-map-support

Jest source maps not working

Open
#279 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Hey there!

I'm pretty new to TypeScript/jest and I spent hours in figuring out why line numbering in failing tests are wrong so please bear with me.

I'm not sure if I missed something or it's an actual bug and I couldn't find anything close to my problem online. When running `install()`, line numbering breaks, when commenting it out, everything works fine (but of course stack traces don't work any more). It doesn't matter if `install()` is run in test code or in imported production code, test line numbering always breaks.

I have set up a demo repo over [here](https://github.com/schw4rzlicht/node-sourcemap-jest-demo).

Thanks for your help!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.