Test case for debugging Jest tests written in Typescript. Issue
Steps to reproduce
yarn
ornpm install
to install dependencies- Set breakpoint on line 6 of
SystemUnderTest.spec.ts
. (Just abovedebugger;
statement) - Set breakpoint on line 3 of
SystemUnderTest.ts
. (Insideconstructor
). - Press F5 or click "Start Debugging".
Debugger should stop...
- On line 6 of
SystemUnderTest.spec.ts
. - On line 3 of
SystemUnderTest.ts
. - On line 7 of
SystemUnderTest.spec.ts
.
Debugger only stops on line 7 of SystemUnderTest.spec.ts
VS Code reports that the breakpoints are loaded. They are not greyed out.
However, as the debugger reaches each expected breakpoint but doesn't it it, it will begin reporting a source map problem.
The "future" breakpoint (line 8 of SystemUnderTest.spec.ts
) does not report any sourcemap problem.