title: How to pass variable from beforeEach hook to tests in jest?
body: <pre><code>beforeEach(async () =&gt; {
    const sandbox = sinon.sandbox.create()
    ...
  })
  
  test('/add', () =&gt; {
    // how can I use sandbox here?
  })
  </code></pre>
  
  <p>What I need is something like <code>t.context</code> in ava</p>