Three different window mocking possibilities.
For more details check the article on https://www.grzegorowski.com/how-to-mock-global-window-with-jest
Clone this repository with:
git clone git@github.com:jmarceli/mock-window.gitthen install NPM dependencies:
npm installExecute:
npm run testTo run sample tests.
author: Jan Grzegorowski