Files
gh-jeremylongshore-claude-c…/skills/visual-regression-tester/assets/example_chromatic_config.yml
2025-11-30 08:23:48 +08:00

55 lines
2.2 KiB
YAML

# Configuration for Chromatic visual regression testing
# https://www.chromatic.com/
# Project token - REPLACE_ME with your actual Chromatic project token.
# This token is used to authenticate with Chromatic and identify your project.
projectToken: REPLACE_ME
# Branch name - Optional, defaults to the current git branch.
# You can specify a branch name manually if needed.
branchName: main
# Commit SHA - Optional, defaults to the current git commit SHA.
# Used to link the Chromatic build to a specific commit.
commitSha: YOUR_VALUE_HERE # e.g., "a1b2c3d4e5f6g7h8i9j0"
# Repository slug - Optional, defaults to the origin URL from git config.
# Format: <owner>/<repository> (e.g., "my-org/my-repo")
repositorySlug: YOUR_VALUE_HERE # e.g., "my-org/my-repo"
# Build number - Optional, defaults to the CI build number (if available).
# Useful for tracking specific builds within your CI/CD system.
buildNumber: YOUR_VALUE_HERE # e.g., "1234"
# Auto Accept Changes - Flag to automatically accept all changes. USE WITH CAUTION!
# Useful in CI environments where you want to automatically approve visual changes.
# Set to 'true' to auto-accept all changes, 'false' to require manual approval.
autoAcceptChanges: false
# Ignore Files - List of file patterns to ignore during screenshot collection.
# Use glob patterns to match files or directories.
ignoreFiles:
- "**/node_modules/**"
- "**/dist/**"
- "**/build/**"
# Include Files - List of file patterns to include during screenshot collection.
# Use glob patterns to match files or directories. If not specified, all files are considered.
includeFiles:
- "**/src/**/*.stories.@(js|jsx|ts|tsx)"
- "**/stories/**/*.stories.@(js|jsx|ts|tsx)"
# Storybook URL - The URL of your deployed Storybook instance.
# If not specified, Chromatic will attempt to build and serve Storybook locally.
# Useful when you want to use a pre-built Storybook instance.
storybookUrl: YOUR_VALUE_HERE # e.g., "https://your-storybook.example.com"
# Debug - Enable debug mode for more verbose logging.
debug: false
# Options specific to the Chromatic CLI. See https://www.chromatic.com/docs/cli-options for full details.
chromaticFlags:
# Example: --only-changed
onlyChanged: false
# Example: --exit-zero-on-changes
exitZeroOnChanges: false