Skip to content

feat(service): Enable inspector debugging for unit test by mocha #2013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

YuJianrong
Copy link
Contributor

Mocha test cases cannot be debugged by the same solution of jest doc:

node --inspect-brk ./node_modules/.bin/vue-cli-service test:unit

The command above will start the debugger on vue-cli-service instead of mocha, the mocha is running in another process so the --inspect-brk argument must be added to the node command which run the mocha-webpack. Here is the debugging solution from mocha-webpack:
zinserjan/mocha-webpack#67 (comment)

A new option --inspect-brk is added in this PR to enable the debug mode of mocha-webpack.

@yyx990803 yyx990803 merged commit 2243515 into vuejs:dev Aug 6, 2018
@yyx990803
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants