-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
What problem does this feature solve?
Fix errors in your test or code under test by setting a break point and inspecting the system state.
Using the 2.x CLI combined with Karma Chrome/Firefox/... i could run a test and use the browsers build in debugger to debug de code. In the new CLI ( 3.x with jsdom) i do not see how this is done in a clean and easy to use way.
What does the proposed API look like?
yarn test --debug
danielelkington
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
yyx990803 commentedon Feb 28, 2018
This may help:
I doubt we can make this part of the command itself.
wangxuepeng commentedon Aug 28, 2018
Debug Jest unit test following the links works perfect:
`
{
`
but the same approach for mocha does not work:
`
{
`,
it prompts error below:
_WEBPACK Failed to compile with 1 error(s)
Error in ./tests/unit/HelloWorld.spec.js
Module not found: "@/components/HelloWorld.vue" in "/Users/mkw/Dev/vue_mocha/tests/unit"
Waiting for the debugger to disconnect...
Killed: 9_
Looks like it need some webpack configuration?
BTW, I also check link feat(service): Enable inspector debugging for unit test by mocha, it seems the solution, but how to config it in VSCode?
Thanks.
LinusBorg commentedon Aug 28, 2018
Please use forum.vuejs.org for support questions. this issue is closed.