allure-js-commons
Version:
Allure JS Commons
21 lines • 895 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AllureBrowserRuntime = void 0;
const md5_1 = __importDefault(require("md5"));
const AllureRuntime_1 = require("../framework/AllureRuntime");
class AllureBrowserRuntime extends AllureRuntime_1.AllureBaseRuntime {
constructor(config) {
super(config, {
uuid: () => globalThis.crypto.randomUUID(),
md5: md5_1.default,
});
}
writeAttachmentFromPath() {
throw new Error("Browser Allure runtime doesn't support writting attachments from path! User AllureNodeRuntime instead or alternative methods to write attachments.");
}
}
exports.AllureBrowserRuntime = AllureBrowserRuntime;
//# sourceMappingURL=runtime.js.map
;