Back to blog

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

What’s new in Storybook

loading
Joe Vaughan
@joevaugh4n
Last updated:

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
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 →

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/storybook
Extends #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…

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 – Chromatic
Learn how to test user interfaces effectively

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:

Storybook community jobs board

View and apply now →

Join the Storybook mailing list

Get the latest news, updates and releases

6,615 developers and counting

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.

View jobs

Popular posts

Introducing the Theme Switcher addon

September 2023 Storybook update
loading
Joe Vaughan

Storybook 7.5

Next.js improvements, enhanced Angular support, and 2.2x faster startup for React TypeScript projects
loading
Michael Shilman

Visual Tests addon entering private alpha

Sign up now to take part, plus project updates
loading
Dominic Nguyen
Join the community
6,615 developers and counting
WhyWhy StorybookComponent-driven UI
DocsGuidesTutorialsChangelogTelemetry
CommunityAddonsGet involvedBlog
ShowcaseExploreProjectsComponent glossary
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI