Last Updated: March 22, 2017
·
2.136K
· zerok

Delay test execution in Karma

Karma automatically starts the test-suite when it thinks everything has been loaded and is ready. If you disagree with Karma on the definition of "ready", disable the loaded hook

window.__karma__.loaded = function() {};

and then call the start function whenever your definition of "ready" applies :-)

window.__karma__.start();

1 Response
Add your response

Thank you veeeeery much

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside