"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runSilently = runSilently;
async function runSilently(runner) {
    const originalLog = console.log;
    const originalInfo = console.info;
    const originalDebug = console.debug;
    const noop = () => { };
    console.log = noop;
    console.info = noop;
    console.debug = noop;
    try {
        return await runner();
    }
    finally {
        console.log = originalLog;
        console.info = originalInfo;
        console.debug = originalDebug;
    }
}
