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

Releases: storybookjs/testing-react

v2.0.1

21 Apr 14:20
Compare
Choose a tag to compare

⚠️ Pushed to main

  • add project annotation overrides section [skip-ci] (@yannbf)

Authors: 1

v2.0.1-future.1

21 Apr 14:20
Compare
Choose a tag to compare
v2.0.1-future.1 Pre-release
Pre-release

⚠️ Pushed to future

  • Merge branch 'main' into future (@yannbf)
  • add project annotation overrides section [skip-ci] (@yannbf)

Authors: 1

v2.0.1-future.0

11 Apr 12:43
Compare
Choose a tag to compare
v2.0.1-future.0 Pre-release
Pre-release

⚠️ Pushed to future

  • update storybook dependencies to future (@yannbf)

Authors: 1

v2.0.0

03 Apr 12:57
Compare
Choose a tag to compare

🎉 This release contains work from a new contributor! 🎉

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

Release Notes

Support 7.0.0 (#140)

Storybook 7.0.0 is out! This release will make @storybook/testing-react compatible with Storybook 7, though I highly recommend not to use this package anymore!.

@storybook/testing-react has been promoted to a first-class Storybook functionality in Storybook 7. This means that you no longer need this package. Instead, you can import the same utilities, but from the @storybook/react package. Additionally, the internals of composeStories and composeStory have been revamped, so the way a story is composed is more accurate. The @storybook/testing-react package will be deprecated, so we recommend you to migrate.

Please do the following:

  1. Uninstall this package
  2. Update your imports
- import { composeStories } from '@storybook/testing-react';
+ import { composeStories } from '@storybook/react';

// OR
- import { setProjectAnnotations } from '@storybook/testing-react';
+ import { setProjectAnnotations } from '@storybook/react';

Thank you so much for being with me on this journey! ✌️

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

Authors: 4

v2.0.0-next.2

03 Apr 07:53
724b3ac
Compare
Choose a tag to compare
v2.0.0-next.2 Pre-release
Pre-release

🐛 Bug Fix

Authors: 1

v2.0.0-next.1

31 Mar 14:17
d7a6e8e
Compare
Choose a tag to compare
v2.0.0-next.1 Pre-release
Pre-release

🐛 Bug Fix

Authors: 1

v2.0.0-next.0

07 Dec 20:43
b0d25ad
Compare
Choose a tag to compare
v2.0.0-next.0 Pre-release
Pre-release

🎉 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

v1.3.0

19 May 07:57
Compare
Choose a tag to compare

🎉 This release contains work from new contributors! 🎉

Thanks for all your work!

❤️ Matt Harker (@TeaSeaLancs)

❤️ Alejandro Ñáñez Ortiz (@alejandronanez)

🚀 Enhancement

🐛 Bug Fix

Authors: 3

v1.2.4

20 Mar 12:34
Compare
Choose a tag to compare

🐛 Bug Fix

Authors: 2

v1.2.3

12 Jan 11:25
Compare
Choose a tag to compare

🎉 This release contains work from new contributors! 🎉

Thanks for all your work!

❤️ Fabien (@frassinier)

❤️ Imgbot (@ImgBotApp)

❤️ Tatsushi Toji (@tatsushitoji)

🐛 Bug Fix

⚠️ Pushed to main

📝 Documentation

Authors: 5