"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArtifactSummaryPrinter = void 0;
class ArtifactSummaryPrinter {
    constructor(testDir, stream = process.stderr) {
        this.testDir = testDir;
        this.stream = stream;
    }
    print(summary) {
        if (process.env.HEAL_PRINT_ARTIFACT_PATHS !== '1')
            return;
        this.stream.write(this.formatSummary(summary));
    }
    formatSummary(summary) {
        return (`[heal-playwright-tracer] ${summary.title} (${summary.status})\n` +
            `  test artifacts dir: ${this.testDir}\n`);
    }
}
exports.ArtifactSummaryPrinter = ArtifactSummaryPrinter;
