chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Automatically configure TurboSnap #255

Closed ghengeveld closed 1 month ago

ghengeveld commented 3 months ago

From AP-3538

Some of TS options (storybookConfigDir, storybookBaseDir) can actually be automatically inferred because the addon knows where storybook is running from and how it is configured.

Currently the user can set these options in chromatic.config.json and have it be recognized by both the addon and the CLI. However, there is an opportunity for the addon to write those options (alongside projectId/projectToken) on behalf of the user.