Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.76k stars 148 forks source link

Can you add docs on how to use this with jest? #115

Open sontek opened 7 years ago

sontek commented 7 years ago

I've tried this:

./node_modules/devtool/bin/index.js ./node_modules/jest/bin/jest.js -i

Which does launch devtools and runs the tests but I put a debugger; line in the code and it didn't stop. I also don't see a way to keep the electron app open so as I save files I can set breakpoints inside the devtools and re-run them.

kimbo6365 commented 7 years ago

I'd also be interested in knowing how to do this. I'm able to launch the browser, and when I pass in the --break option, it stops at the first line in jest, but it never stops at the debugger; statements in my tests.