This is the source code for this StackOverflow answer:

https://stackoverflow.com/a/56891909/1108891

Usage

  • First npm install.
  • Then open the repository in VS Code.
  • Add a break point to index.test.ts on assert.equal(true, true).
  • Run the Launch via NPM script from the debugger.
  • The debugger will stop at the breakpoint in the test.