Docs
Back to blog
Join the community
#whats-new

Automatic visual tests in Storybook, plus 2.2x faster build times for React+TS

What’s new in Storybook
My Image
and Joe Vaughan
My Image

Welcome to the latest edition of What’s New in Storybook. Below, learn about several of last month's biggest changes in Storybook land. Featuring:

  • 🚀 Visual Test addon: Now in private alpha
  • 🏎️ react-docgen v6 support: Build React+TS projects up to 2.2x faster
  • 🔎 Improved bug handling: New categorization for crash reports
  • 📚 Updated tutorials: How to run visual tests, Storybook in design systems, and interaction testing

Visual Tests addon – now in private alpha

Storybook's Visual Tests addon – now in private alpha

We kicked off August with the announcement of Storybook’s next big thing: the Visual Tests addon.

The Visual Tests addon lets you use Storybook to run automatic tests of your stories. These tests can cover any combination of browsers, viewports, and themes. Plus, they all run at the same time, powered by Chromatic’s cloud-based infrastructure.

The addon has now entered private alpha, and we're rolling out invites to the people on our early access list. To join early access, sign up now →

Test for visual changes in your stories (across multiple themes, viewports, and browsers), then view them in the Storybook UI!

react-docgen v6 support

We're excited to share the first canary release of react-docgen v6 support in Storybook. This dramatically speeds up startup time for React+TS projects. On the medium-sized Mealdrop project, it made startup time 2.2x faster, reducing it from 8.9s to 4.0s (~55%).

Our hope is to make react-docgen v6 the default in Storybook 8.0. The 7.0 solution, react-docgen-typescript, runs the TypeScript compiler on your entire project source, which is slow. react-docgen is much faster, but until recently it has been too limited for real-world projects.

We’d love your help testing out the new version in your project. Learn how by following the instructions on the open PR that includes the canary ↓

Update `react-docgen` to 6.0.x and improve union handling by shilman · Pull Request #23825 · storybookjs/storybookExtends #22324What I didNOTE: This only applies to VITE projects, not Webpack ones yet!!!Extends #22324: Update react-docgen to 6.0.x Add support for fs resolver Also: Add experimental su…

GitHubstorybookjs

Improved error categorization for crash reports

With different frameworks, renderers, addons, and other tech, every project containing Storybook is virtually unique. That can make it hard for us to spot where and how Storybook isn't working.

One key source of insights that we use when triaging issues is our users’ crash reports. Crash reports are opt-in and completely anonymous, but they significantly widen our coverage of Storybook use cases.

So that we can do more with the info we get from crash reports, we’re adding a new framework to categorize error codes. This will help us identify bugs and fix them more quickly.

We’re always grateful for your support and every single contribution that our users make. To help us maintain Storybook, consider opting in to sending crash reports or report bugs to us via GitHub Issues. Thank you!

New learning materials

To help you take your work with Storybook further and improve your skills, we published several new learning resources.

Find out how you can use Storybook to maintain your design system ↓

Learn to use Storybook to test your components' event handling and interactions ↓

Read our updated guide to visually testing UI in 2023 (via Chromatic) ↓

How to run visual regression tests in 2023 – ChromaticLearn how to test user interfaces effectively

Ink by ChromaticTom Coleman

Community jobs

We have 87 open roles for Storybook devs on our community jobs board! Currently, these include opportunities at organizations like JP Morgan, The Times, BT, eBay, and many more:

View and apply now →

Share on
Join the Storybook mailing list
Get the latest news, updates and releases

We're hiring!
Join the team behind Storybook and Chromatic. Build tools that are used in production by 100s of thousands of developers. Remote-first.
Keep reading
My ImageVisual Tests addon entering private alpha
Sign up now to take part, plus project updates
My Image
and Dominic Nguyen
My ImageIntroducing the Chromatic Visual Tests addon
Pinpoint UI bugs down to the pixel with Storybook
My Image
and Dominic Nguyen
My ImageTwo new Storybook versions and faster release cycle
July 2023 Storybook update
My Image
and Joe Vaughan