#Yarn test:debug SyntaxError: missing ) after argument list

4 messages · Page 1 of 1 (latest)

lyric dagger
#

package.json:

"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"

launch.json:

{
"version": "0.2.0",
"configurations": [

{
  "type": "node",
  "request": "launch",
  "name": "Debug Nest Framework",
  "runtimeArgs": [
   "--inspect-brk",
    "./node_modules/jest/bin/jest.js",
    "--runInBand"
  ],
  "autoAttachChildProcesses": true,
  "restart": true,
  "sourceMaps": true,
  "stopOnEntry": false,
  "console": "integratedTerminal",
}

]
}

the error happens when I use debug to run attach on the node process

misty lichen
#

So this error happens when you run test:debug but not the debug launch from VSC, right?

lyric dagger
#

yes, i run yarn test:debug and i have that choice the method atattch

#

just run yarn test the debbuger connect, but the breakpoint is in a service spec file