title: Mock Service Worker / Node isn't working and I can't see why
body: <p>If anyone can spot whatever's wrong with this code, I'd really appreciate. Not seeing an issue myself, but it's failing.</p>
  <pre><code>import React from &quot;react&quot;
  import {setupServer} from &quot;msw/node&quot;
  import {rest} from &quot;msw&quot;
  
  describe(&quot;mocking apis&quot;, () =&gt; {
    const testCall = jest.fn()
    const server = setupServer(
      ...[
        rest.get(&quot;/test&quot;, (req, res, ctx) =&gt; {
          console.log('This line is never run')
          testCall()
          return res(ctx.json({message: &quot;success&quot;}))
        }),
      ]
    )
  
    test(&quot;test&quot;, async () =&gt; {
      server.listen()
      fetch(&quot;/test&quot;, {method: &quot;GET&quot;})
      expect(testCall).toHaveBeenCalled()
      server.close();
    })
  })
  </code></pre>