UNPKG

allure-js-commons

Version:
12 lines 545 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AllureInMemoryWriter = void 0; const fs_1 = require("fs"); const AllureInMemoryWriter_1 = require("../../framework/writers/AllureInMemoryWriter"); class AllureInMemoryWriter extends AllureInMemoryWriter_1.AllureInMemoryAllureWriter { writeAttachmentFromPath(from, toFileName) { this.attachments[toFileName] = (0, fs_1.readFileSync)(from); } } exports.AllureInMemoryWriter = AllureInMemoryWriter; //# sourceMappingURL=InMemoryAllureWriter.js.map