import {
  clearCollectedLogs,
  collectedLogs
} from "./chunk-LA4HX5WI.js";
import {
  init_cjs_shims
} from "./chunk-POZ5MGPT.js";

// ../cli-kit/dist/public/node/testing/output.js
init_cjs_shims();
function mockAndCaptureOutput() {
  return {
    output: () => (collectedLogs.output ?? []).join(`
`),
    info: () => (collectedLogs.info ?? []).join(`
`),
    debug: () => (collectedLogs.debug ?? []).join(`
`),
    success: () => (collectedLogs.success ?? []).join(`
`),
    completed: () => (collectedLogs.completed ?? []).join(`
`),
    warn: () => (collectedLogs.warn ?? []).join(`
`),
    error: () => (collectedLogs.error ?? []).join(`
`),
    clear: () => {
      clearCollectedLogs();
    }
  };
}

export {
  mockAndCaptureOutput
};
//# sourceMappingURL=chunk-CC2Z3PYH.js.map
