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();Written by Horst Gutmann
Related protips
1 Response
Thank you veeeeery much
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Testing
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#