Skip to content

jmarceli/mock-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Window

Three different window mocking possibilities. For more details check the article on https://www.grzegorowski.com/how-to-mock-global-window-with-jest

Setup

Clone this repository with:

git clone git@github.com:jmarceli/mock-window.git

then install NPM dependencies:

npm install

Run

Execute:

npm run test

To run sample tests.


author: Jan Grzegorowski

About

Example of window mocking in Javascript Jest tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published