allure-js-commons
Version:
Allure JS Commons
14 lines • 540 B
JavaScript
import md5 from "md5";
import { AllureBaseRuntime } from "../framework/AllureRuntime";
export class AllureBrowserRuntime extends AllureBaseRuntime {
constructor(config) {
super(config, {
uuid: () => globalThis.crypto.randomUUID(),
md5,
});
}
writeAttachmentFromPath() {
throw new Error("Browser Allure runtime doesn't support writting attachments from path! User AllureNodeRuntime instead or alternative methods to write attachments.");
}
}
//# sourceMappingURL=runtime.js.map