testplane
Version:
Tests framework based on mocha and wdio
14 lines • 581 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHistoryContext = exports.runWithHistoryContext = void 0;
const async_hooks_1 = require("async_hooks");
const historyContext = new async_hooks_1.AsyncLocalStorage();
const runWithHistoryContext = (contextData, fn) => {
return historyContext.run(contextData, fn);
};
exports.runWithHistoryContext = runWithHistoryContext;
const getHistoryContext = () => {
return historyContext.getStore();
};
exports.getHistoryContext = getHistoryContext;
//# sourceMappingURL=async-local-storage.js.map