This is an example for demonstrating configuration of jsdom-screenshot with msw.
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.
This project was bootstrapped with Create React App.