UltimateApp icon indicating copy to clipboard operation
UltimateApp copied to clipboard

Use Storybook for component documentation and snapshot testing

Open sallesma opened this issue 4 years ago • 0 comments

In order to have a nice documentation and automated snapshot testing, Bernie suggested we use Storybook there https://github.com/UltimateApp/UltimateApp/pull/47#issuecomment-607170966

What do you guys think about instead of writing all these snapshot tests manually we could start using storybook (https://storybook.js.org/) in combination with storyshots (https://storybook.js.org/docs/testing/structural-testing/#using-storyshots)?

That way we both get the benefit from storyshot (develop components in isolation or grouped, better testability because of the encouraged capsulation, better documentation) as well as automated snapshot testing with only a one-time setup being necessary

sallesma avatar Apr 05 '20 20:04 sallesma