title: jest not implemented window.alert()
body: <p>I have written a test for my API with jest. I added a function that calls my API in the test file as below:</p>
  <pre><code>import AuthManager from &quot;../Client/Modules/Auth/AuthManager&quot;;
  </code></pre>
  <p>and use it as below:</p>
  <pre><code>test(&quot;login api resolves true&quot;, () =&gt; {
    return expect(AuthManager.login(&quot;test&quot;, &quot;test&quot;)).resolves.toMatchObject(
      expect.objectContaining({
        accessToken: expect.any(String),
        email: expect.any(String),
        expiresIn: expect.any(Number),
        refreshToken: expect.any(String),
        userFullName: expect.any(String),
        userId: expect.any(Number)
      })
    );
  });
  </code></pre>
  <p>My test passes, but I have an error as below:</p>
  <blockquote>
  <p>Error: Not implemented: window.alert</p>
  </blockquote>
  <p>How do I solve this problem?</p>