stub-window-object-example Example setting from a Cypress test the initial data object in the application Read the blog post Stub Objects By Passing Them Via Window Property. Running the example npm install npm start open http://localhost:3000