UNPKG

jest-allure2-reporter

Version:
12 lines 565 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeAttachments = normalizeAttachments; const tslib_1 = require("tslib"); const node_path_1 = tslib_1.__importDefault(require("node:path")); function normalizeAttachments(rootDirectory, result) { return result.attachments?.map((attachment) => { const source = node_path_1.default.relative(rootDirectory, attachment.source); return source.startsWith('..') ? attachment : { ...attachment, source }; }); } //# sourceMappingURL=normalizeAttachments.js.map