"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachJson = attachJson;
exports.attachText = attachText;
function attachJson(ctx, name, obj) {
    if (!ctx.reporter.attach)
        return;
    ctx.reporter.attach({
        scenarioId: ctx.scenarioId,
        name,
        contentType: "application/json",
        data: JSON.stringify(obj, null, 2),
    });
}
function attachText(ctx, name, text) {
    if (!ctx.reporter.attach)
        return;
    ctx.reporter.attach({
        scenarioId: ctx.scenarioId,
        name,
        contentType: "text/plain",
        data: text,
    });
}
//# sourceMappingURL=attachments.js.map