UNPKG

jest-allure2-reporter

Version:
13 lines 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.moveHandler = void 0; const utils_1 = require("../../utils"); const placeAttachment_1 = require("./placeAttachment"); const moveHandler = async (context) => { const size = context.size ?? (await (0, utils_1.getFileSize)(context.sourcePath)); const destination = (0, placeAttachment_1.placeAttachment)(context); await (0, utils_1.fastMove)(context.sourcePath, destination); return { source: destination, size }; }; exports.moveHandler = moveHandler; //# sourceMappingURL=moveHandler.js.map