Skip to content

jmarceli/mock-window

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

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