title: How to use Jest to test functions using crypto or window.msCrypto
body: <p>When running unit tests with Jest in react the <code>window.crypto</code> API is causing problems. I haven't found a way to incorporate <code>crypto</code> in Jest without installing other packages which is something I can't do. So without using another npm package is there a way to test functions that use: <code>crypto.getRandomValues()</code> in them that doesn't crash Jest? Any links, advice, or tips are appreciated</p>