Skip to content
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

disable mocha parallel mode if tests are being debugged #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eramitmittal
Copy link

If mocha is set to run in parallel mode, then breakpoints in test code fail to be hit. This is because mocha itself tries to run tests using worker pool, while debugger is waiting on main mocha thread.

Parallel mode in general does not make sense while trying to debug tests using this extension. Ignoring parallel mode setting while running the tests in debug mode fixes the breakpoint problem.

@eramitmittal
Copy link
Author

this will partly fix #238 (breakpoints not hit when parallel is true)

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.

None yet

1 participant