"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Node_1 = require("../executors/Node");
var WebDriver_1 = require("../executors/WebDriver");
var Task_1 = require("@dojo/core/async/Task");
function run(rawConfig) {
    return new Task_1.default(function (resolve, reject) {
        var isWebDriver = rawConfig.webdriver;
        if (isWebDriver) {
            WebDriver_1.default.initialize(rawConfig);
        }
        else {
            Node_1.default.initialize(rawConfig);
        }
        intern.run().then(resolve, reject);
    });
}
exports.default = run;
//# sourceMappingURL=runner.js.map