title: How to read jest config values within test?
body: <p><code>jest</code> allows you to <a href="https://jestjs.io/docs/en/23.x/configuration" rel="noreferrer">set global configuration values</a> using either <code>package.json</code>, CLI options or a <code>jest.config.js</code> file.</p>
  <p>You can set few config values in your tests e.g.</p>
  <pre class="lang-js prettyprint-override"><code>jest.setTimeout(10000000)
  </code></pre>
  <p>But I couldn't find a way to read config values, e.g.</p>
  <pre class="lang-js prettyprint-override"><code>const initialTimeout = jest.testTimeout // this is undefined
  jest.setTimeout(10000000)
  // do something that takes unusually long time
  jest.setTimeout(initialTimeout)
  </code></pre>
  <p><strong>So how can you read currently set global configuration values within a test?</strong></p>