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

Support In-Browser Debugging #2655

Closed
evenstensberg opened this issue Jan 20, 2017 · 2 comments
Closed

Support In-Browser Debugging #2655

evenstensberg opened this issue Jan 20, 2017 · 2 comments

Comments

@evenstensberg
Copy link

Feature Request

Webpack CLI had it's first meeting yesterday. We had a short discussion about using Jest as our test-runner and we had positive thoughts about using Jest, as it provides

-"a good stack with coverage and all features included"

However, one issue got brought up during the discussion. Jest doesn't support browser debug in similar ways as Karma. I dunno if this is plausible in Node purely, but it would be good to bring up the issue regardless.

Would this be something for Jest?

@cpojer
Copy link
Member

cpojer commented Jan 21, 2017

Are you only talking about debugging? You can debug your tests using --debug-brk, see http://facebook.github.io/jest/docs/troubleshooting.html#tests-are-failing-and-you-don-t-know-why

You can also use node --inspect which will eventually become the standard but doesn't enable breakpoints to work inside of tests yet because of a bug in node's vm module that is actively being worked on.

There is an ongoing discussion here about running Jest directly in the browser: #848

@cpojer cpojer closed this as completed Jan 21, 2017
@evenstensberg
Copy link
Author

@cpojer Yepp, this was probably a dupe of #848

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

3 participants