steal.done

  • property
{function()}  

A promise for when the application has loaded. Useful if you want to automatically run some code (like tests) after everything has loaded.

steal.done()

Returns

{Promise}

A promise that will resolve when the configMain and main have loaded.

Use

Calling steal.done is useful in scenarios where you need to start some process after the dependency graph of your application has been fully imported. For example (used with @steal):

var steal = require("@steal");
var QUnit = require("qunit");

steal.done().then(function(){
  QUnit.load();
});

This will start running QUnit tests after all modules have loaded.

Help us improve StealJS by taking our community survey