title: Read value logged to the console in Deno
body: <p>How can I read a value logged to the console in Deno? I'm trying to write a test that checks if a function logs the right value to console. </p>
  
  <p>I've already tried this, but it can only read values manually typed into stdin. <a href="https://stackoverflow.com/questions/58019572/getting-values-from-deno-stdin">Getting values from Deno stdin</a></p>