Open ezimmerman opened 2 years ago
Been nearly a year and a half and not a single comment on this?
I'm having the same issue and it makes fixing tests extremely difficult.
This worked for me in VSCode's launch.json
. Weirdly variables are still saying undefined but it's hitting the right lines now.
{
... // other bits
"sourceMapPathOverrides": {
"webpack:/*": "${webRoot}/*",
"/./*": "${webRoot}/*",
"/src/*": "${webRoot}/*",
"/*": "*",
"/./~/*": "${webRoot}/node_modules/*"
},
... // other bits
}
Github repo demonstrating the issue here Using the vue create app I create a new app with the following selections babel, unit testing, 3.x, jest, in package json.
Add to package.json the suggested setting
With our without a launch configuration the behavior is the same.
vscode settings.json:
Generated Launch configuration from jest setup extension
In HelloWorld.vue on line 39 add the following:
Place a breakpoint at the console.log('test') line.
in the example.spec.js debug the test.
expected, that the breakpoint in Helloworld.vue at the console.log('test') should be hit.
actual, the breakpoint is never it. vscode version Version: 1.68.1 (Universal)