UNPKG

stryker-api

Version:

The api for the extendable JavaScript mutation testing framework Stryker

35 lines 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("../../core"); var ReporterFactory; (function (ReporterFactory_1) { /** * Represents a Factory for Reporters. */ var ReporterFactory = /** @class */ (function (_super) { tslib_1.__extends(ReporterFactory, _super); function ReporterFactory() { return _super.call(this, 'reporter') || this; } /** * Returns the import suggestion for a Reporter * @param name The name of the Reporter the user tried to use. * @returns The name of the package the user may want to install (if it exists). */ ReporterFactory.prototype.importSuggestion = function (name) { return "stryker-" + name + "-reporter"; }; return ReporterFactory; }(core_1.Factory)); var reporterFactoryInstance = new ReporterFactory(); /** * Returns the current instance of the TestRunnerFactory. */ function instance() { return reporterFactoryInstance; } ReporterFactory_1.instance = instance; })(ReporterFactory || (ReporterFactory = {})); exports.default = ReporterFactory; //# sourceMappingURL=ReporterFactory.js.map