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 coverage when running VSCode debugger #75

Closed
stevenzeck opened this issue Apr 7, 2018 · 1 comment
Closed

Disable coverage when running VSCode debugger #75

stevenzeck opened this issue Apr 7, 2018 · 1 comment

Comments

@stevenzeck
Copy link
Contributor

stevenzeck commented Apr 7, 2018

Debugging Unibeautify in VSCode will not work 100% properly unless you disable code coverage while doing so. So we want to add `--coverage false to the launch args.

"args": ["--config", "jest.config.js", "--runInBand", "--coverage", "false"]

I have seen cases where adding a debugger statement triggered the debugger to stop, but not at the correct line. As a result, my standard practice is to turn coverage off during debugging, hence the "--coverage", "false" in the runtimeArgs parameter in launch.json

https://medium.com/@mtiller/debugging-with-typescript-jest-ts-jest-and-visual-studio-code-ef9ca8644132

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

No branches or pull requests

2 participants