cypress-visual-regression

v5.0.2
Module for adding visual regression testing to Cypress
visual regression image diff cypress

lint

eslint src --ext .ts

test

vitest run --globals

build

tsup src/plugin.ts src/command.ts src/utils/image.ts src/utils/logger.ts --format esm,cjs --dts

cy:base

cypress run -C cypress.base.config.ts

lint:fix

eslint src --ext .ts --fix

prebuild

rimraf dist && npm run lint && npm run format:check && npm run test

typecheck

tsc --noEmit --project tsconfig.json

format:fix

prettier --write ./

preversion

npm run lint && npm run format:check && npm run test && npm run build

cy:open:base

cross-env visual_regression_log=debug cypress open --e2e -b chrome -C cypress.base.config.ts

format:check

prettier --check ./

cy:regression

cypress run -C cypress.regression.config.ts

prepublishOnly

npm run build

clean:snapshots

rimraf cypress/snapshots

cy:open:regression

cross-env visual_regression_log=debug cypress open --e2e -b chrome -C cypress.regression.config.ts

cy:base-and-regression

npm run cy:base && npm run cy:regression

Metadata

  • MIT
  • >=18
  • Michael Herman
  • released 6/9/2024

Downloads

Maintainers