I'm developing a API REST in JAVASCRIPT using KOA, and to test my routes I write integrated test launched with MOCHA.
I'm using VS Code for MAC
When debugging my test files I run my launch.js configuration
{
"type": "node",
"request": "launch",
"name": "Mocha Current File",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
"999999",
"--colors",
"${file}"
],
"env": {
"NODE_ENV":"test",
},
"console": "internalConsole",
"outputCapture": "std"
},
which return this command in the terminal
/Users/ME/.nvm/versions/node/v16.6.0/bin/node ./node_modules/mocha/bin/_mocha --timeout 999999 --colors /Users/ME/MyProject/test/integration/test-to-check.test.js
And before the VS Code update (when using 1.57.1) all my breakpoint would have been hit without any problems every time I run my test, but after this version and without changing anything, my breakpoint wasn't hit anymore.
all version after 1.57.1 to 1.60.2
Then currently I need to lock my version of VS Code to 1.57.1 If I want to debug my test.
Here is the weird thing about this case :
I already tried to read/use the official documentation of VS Code about the new debugger process, but it didn't change anything.
After searching for every thread speaking about the subject, I'm short of idea
If someone have a solution on this case, it would be a great help.
Thank in advance !
Libraries version :