jest-allure2-reporter
Version:
Idiomatic Jest reporter for Allure Framework
13 lines • 426 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapFunction = wrapFunction;
function wrapFunction(function_, callback) {
const wrapper = {
[function_.name]() {
return Reflect.apply(callback, this, arguments);
},
}[function_.name];
wrapper.toString = function_.toString.bind(function_);
return wrapper;
}
//# sourceMappingURL=wrapFunction.js.map