Mock window.crypto.getRandomValues in jest
I 'd like to mock window.crypto.getRandomValues in jest. I have tried jest.spyOn and it doesn't work out.