stryker-mocha-runner
Version:
A plugin to use the mocha test runner in Stryker, the JavaScript mutation testing framework
16 lines • 636 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var MochaRunnerOptions_1 = require("./MochaRunnerOptions");
var plugin_1 = require("stryker-api/plugin");
var MochaConfigEditor = /** @class */ (function () {
function MochaConfigEditor(loader) {
this.loader = loader;
}
MochaConfigEditor.prototype.edit = function (config) {
config[MochaRunnerOptions_1.mochaOptionsKey] = this.loader.load(config);
};
MochaConfigEditor.inject = plugin_1.tokens('loader');
return MochaConfigEditor;
}());
exports.default = MochaConfigEditor;
//# sourceMappingURL=MochaConfigEditor.js.map