Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When errors occur in code that executes before actual test code (e.g. all module-level code in the modules being imported by a test), the source code excerpt and stack trace line numbers are reported incorrectly by Jest
If the current behavior is a bug, please provide the steps to reproduce.
Generally, just throw an error in module level code that's imported by a test.
https://github.com/jamietre/jest-source-map-problem/tree/6afd64cf0dfe0fc4d3b3e4f14ccc0bdea6f7787c
What is the expected behavior?
The source map should work
Please mention your node.js, yarn and operating system version.
node@8.9.4
yarn@1.3.2
macOS@10.13.4 (High Sierra)