msutkowski / msw-jsdom-snapshot-repro

A repro for demonstrating configuration of jsdom-screenshot with msw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A repro for demonstrating configuration of jsdom-screenshot with msw


Languages

Language:JavaScript 74.9%Language:HTML 16.3%Language:CSS 8.8%