/msw-jsdom-snapshot-repro

A repro for demonstrating configuration of jsdom-screenshot with msw

Primary LanguageJavaScript

Overview

This is an example for demonstrating configuration of jsdom-screenshot with msw.

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.