React Screenshot Test

Screenshot Tests for React Components


François Wouts


A dead simple library to screenshot test React components. All you need is to install react-screenshot-test and configure Jest. You can then generate screenshots with jest -c jest.screenshot.config.js -u, just like you would with Jest snapshots. Under the hood, we start a local server which renders components server-side. Each component is given its own dedicated page (e.g. /render/my-component). Then we use Puppeteer to take a screenshot of that page.
Visit Site
Related Projects