Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

v2.0.0-next.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Dec 20:43
b0d25ad

🎉 This release contains work from a new contributor! 🎉

Thank you, Kasper Peulen (@kasperpeulen), for all your work!

Release Notes

Support Storybook 7.0 (#120)

💥 Breaking Change

This version adds support for Storybook 7.0. It requires you to be using Storybook 7.0, as there were several internal changes required, all of which depend on new Storybook packages.

🚀 Features

In Storybook 7.0, the play function can also be defined in the Meta (default export). This is now supported in @storybook/testing-react.

⚠️ Deprecations

The setGlobalConfig function is now deprecated in favor of setProjectAnnotations, which aligns better with Storybook 7.0 nomenclature.

From:

  import { setGlobalConfig } from '@storybook/testing-react';
  import * as globalStorybookConfig from './.storybook/preview';

  setGlobalConfig(globalStorybookConfig);

To:

  import { setProjectAnnotations } from '@storybook/testing-react';
  import * as globalStorybookConfig from './.storybook/preview';

  setProjectAnnotations(globalStorybookConfig);


💥 Breaking Change

🐛 Bug Fix

  • Add test for handling csf3 name -> storyName #108 (@IanVS)

Authors: 3