Running a Jest test in Debug Mode from WebStorm for my TypeScript test suit and class under test in a node project. When setting a breakpoint in the test, it stops as expected. However, when trying to step into the class under test, the debugger jumps to the last line of its .ts file. The line numbers do not align with the ts-file, indicating that the source-mapping is failing for the class under test.
Q: How can I resolve the source-mapping issue?
The project structure is as follows:
project-root
/projects/my-node-project/src
/services //production code resides here
/specs //test suits located here