How to debug Jest tests with VSCode
Matt Mazzola

Hey Matt Mazzola, Great article and video tutorial. Thanks a lot for share this :)

But, I’m trying use this lanuch.json configuration to test .ts files instead of .jsdefining the key sourceMaps: false but my outpout on VSCode debug console is:

node --nolazy node_modules/jest/bin/jest.js -i

The --debug-brkwasn’t added. I tried pass this arg explicitly with key requestArgs: [--debug-brk], but this is showed without the port number, like this:

node --debug-brk --nolazy node_modules/jest/bin/jest.js -i

So, the jestrun the tests, but VSCode don’t stop breakpoint. Do you know why? Can you help me?