chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
33 stars 2 forks source link

Normalize `configDir` before comparing #222

Closed ghengeveld closed 6 months ago

ghengeveld commented 6 months ago

The configured ./ui/.storybook was considered different than the suggested ui/.storybook value for storybookConfigDir, causing the addon to suggest an update. These values aren't actually different when normalized, so an update needn't be suggested. This fixes that by normalizing the suggested value before comparing to the configured value.