Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from "react";
import { ReactScreenshotTest } from "react-screenshot-test";
import { FancyButton } from "./FancyButton";
import "./global.css";
import { redLabel } from "./style.module.css";
ReactScreenshotTest.create("FancyButton")
.viewport("Desktop", {
width: 1024,
height: 768
})
.viewport("iPhone X", {
width: 375,
height: 812,
deviceScaleFactor: 3,
isMobile: true,
hasTouch: true,
isLandscape: false
})
.shoot("with label", )
.shoot("empty label", )
.shoot(
"custom label",