18

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?

2
  • 1
    --single-run should do the trick for you, or { singleRun: false } in karma.conf.js Mar 2, 2017 at 19:36
  • @zxxc when I set singleRun to false, it opens the browser window and doesn't seem to load the tests.
    – James G.
    Mar 2, 2017 at 19:40

1 Answer 1

23

You want to call it with --single-run=false.

Try following this article: https://glebbahmutov.com/blog/debugging-karma-unit-tests/

6

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.