stryker-api
Version:
The api for the extendable JavaScript mutation testing framework Stryker
35 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("../../core");
var TestRunnerFactory;
(function (TestRunnerFactory_1) {
/**
* Represents a Factory for TestRunners.
*/
var TestRunnerFactory = /** @class */ (function (_super) {
tslib_1.__extends(TestRunnerFactory, _super);
function TestRunnerFactory() {
return _super.call(this, 'testrunner') || this;
}
/**
* Returns the import suggestion for a TestRunner
* @param name The name of the TestRunner the user tried to use.
* @returns The name of the package the user may want to install (if it exists).
*/
TestRunnerFactory.prototype.importSuggestion = function (name) {
return "stryker-" + name + "-runner";
};
return TestRunnerFactory;
}(core_1.Factory));
var testRunnerFactoryInstance = new TestRunnerFactory();
/**
* Returns the current instance of the TestRunnerFactory.
*/
function instance() {
return testRunnerFactoryInstance;
}
TestRunnerFactory_1.instance = instance;
})(TestRunnerFactory || (TestRunnerFactory = {}));
exports.default = TestRunnerFactory;
//# sourceMappingURL=TestRunnerFactory.js.map