James G.
James G.

Reputation: 2904

How do you tell Karma to keep browser window open if tests fail?

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?

Upvotes: 18

Views: 16901

Answers (1)

Stout01
Stout01

Reputation: 1126

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

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

Upvotes: 24

Related Questions