UNPKG

jest-puppe-shots

Version:

A Jest plugin for creating screenshots of React components with a help of Puppeteer

10 lines (7 loc) 224 B
const { toMatchImageSnapshot } = require('jest-image-snapshot'); const Page = require('./lib/page-mount-api'); global.expect.extend({ toMatchImageSnapshot }); module.exports = { Page, openNewPage: Page.openNewPage, };