I'm currently trying to implement jasmine testing using karma and webpack, and the code is getting transpiled incorrectly, but I can't see what it is transpiled down to because the browser closes as soon as it opens and finds the syntax error. How can I configure karma or jasmine to keep the browser window open after an error occurs?
1 Answer
You want to call it with --single-run=false
.
Try following this article: https://glebbahmutov.com/blog/debugging-karma-unit-tests/
-
This started working today, but it was not running the tests with this yesterday. Maybe restarting my computer affected the change?– James G.Mar 4, 2017 at 0:45
-
If the option is not good enough for you: Try using Gulp plus Karma APIs browsers_change event: stackoverflow.com/questions/45352256/…– StefanJul 28, 2017 at 13:58
-
8
-
3for the unknown option error, check stackoverflow.com/questions/50816917/… Oct 13, 2020 at 5:57
-