UNPKG

stryker-api

Version:

The api for the extendable JavaScript mutation testing framework Stryker

38 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("../../core"); var MutatorFactory; (function (MutatorFactory_1) { /** * Represents a Factory for Mutators. */ var MutatorFactory = /** @class */ (function (_super) { tslib_1.__extends(MutatorFactory, _super); function MutatorFactory() { return _super.call(this, 'mutant-generator') || this; } /** * Returns the import suggestion for a Mutator * @param name The name of the Mutator the user tried to use. * @returns The name of the package the user may want to install (if it exists). */ MutatorFactory.prototype.importSuggestion = function (name) { if (name === 'typescript') { return "stryker-" + name; } return "stryker-" + name + "-mutator"; }; return MutatorFactory; }(core_1.Factory)); var mutatorFactoryInstance = new MutatorFactory(); /** * Returns the current instance of the MutatorFactory. */ function instance() { return mutatorFactoryInstance; } MutatorFactory_1.instance = instance; })(MutatorFactory || (MutatorFactory = {})); exports.default = MutatorFactory; //# sourceMappingURL=MutatorFactory.js.map