An open API service indexing awesome lists of open source software.

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

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).