How to debug Karma when it fails -


how can debug failing karma test?

i running mocha+chai+sinon tests without problem. if try run tests karma "uncaught typeerror: cannot read property 'call' of undefined" error , karma stops running (i using webpack transpile). error seems webpack loader, question how debug this? run tests, karma fails , terminates.

how can trace karma execution?

you can configure karma stay alive in background. add option singlerun: false karma config. if you're using grunt-karma, can additionally set background: true option.

if start karma, window opens should stay open. there should debug link open second window. window stay open , you'll able re-run tests pressing f5 / refresh. inside window can debug whole stuff using dev tools (usually opened pressing f12) of choice.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -