UNPKG

chromatic

Version:

Automate visual testing across browsers. Gather UI feedback. Versioned documentation.

18 lines (14 loc) 678 B
import chalk from 'chalk'; import pluralize from 'pluralize'; import dedent from 'ts-dedent'; import { error, info } from '../../components/icons'; import link from '../../components/link'; export default ({ build, exitCode }) => { const changes = pluralize('visual changes', build.changeCount, true); return dedent(chalk` ${error} {bold Found ${changes}}: Review the changes at ${link(build.webUrl)} ${info} For CI/CD use cases, this command failed with exit code ${exitCode} Pass {bold --exit-zero-on-changes} to succeed this command regardless of changes. Pass {bold --auto-accept-changes} to succeed and automatically accept any changes. `); };