https://github.com/msutkowski/msw-jsdom-snapshot-repro
A repro for demonstrating configuration of jsdom-screenshot with msw
https://github.com/msutkowski/msw-jsdom-snapshot-repro
Last synced: 11 months ago
JSON representation
A repro for demonstrating configuration of jsdom-screenshot with msw
- Host: GitHub
- URL: https://github.com/msutkowski/msw-jsdom-snapshot-repro
- Owner: msutkowski
- Created: 2020-08-19T04:50:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T05:05:10.000Z (almost 6 years ago)
- Last Synced: 2025-07-28T19:59:23.740Z (11 months ago)
- Language: JavaScript
- Size: 222 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Overview
This is an example for demonstrating configuration of [jsdom-screenshot](https://github.com/dferber90/jsdom-screenshot) with [msw](https://mswjs.io/).
### Key findings
In order for these systems to work together, you must _currently_ pass in `pipe: false` to the `launch` options of `generateImage()`. In this example, this is done in `setupTests` in via the `setDefaultOptions` method. This will force Puppeteer to use a pipe instead of a WebSocket.
### Misc
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).