examples/next/README.md
# Next.js + Cypress + @frsource/cypress-plugin-visual-regression-diff
This example shows how to configure @frsource/cypress-plugin-visual-regression-diff to work with Cypress & Next.js.
## Project setup
```bash
pnpm install
```
### Run end-to-end tests
> Important - remember to run `pnpm && pnpm build` command in this repo's root directory before starting e2e tests.
```bash
pnpm e2e
```
### Run component tests
> Important - remember to run `pnpm && pnpm build` command in this repo's root directory before starting e2e tests.
```bash
pnpm component
```
### Compiles and hot-reloads for development
```bash
pnpm dev
```
### Compiles and minifies for production
```bash
pnpm build
```
## Credits
Created using [Next.js Cypress template](https://nextjs.org/docs/pages/building-your-application/optimizing/testing#cypress).