Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@storybook/testing-library

storybookjs4.1mMITdeprecated0.2.2TypeScript support: included

In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can.

Instrumented version of Testing Library for Storybook Interactions

readme

Storybook Testing Library

Storybook integration for Testing Library, instrumented for use with the Interactions addon.

For documentation, check the Storybook docs

changelog

v0.2.2 (Mon Oct 02 2023)

🐛 Bug Fix

  • Revert: Temporarily fix user-event to 14.4.0 to avoid compatibility issues #57 (@yannbf)

Authors: 1


v0.2.1 (Fri Sep 15 2023)

:tada: This release contains work from a new contributor! :tada:

Thank you, Valentin Palkovic (@valentinpalkovic), for all your work!

🐛 Bug Fix

  • Temporarily fix user-event to 14.4.0 to avoid compatibility issues #53 (@yannbf)

Authors: 2


v0.2.0 (Tue Jun 20 2023)

:tada: This release contains work from a new contributor! :tada:

Thank you, Vanessa Yuen (@vanessayuenn), for all your work!

Release Notes

Release 0.2.0 (#46)

@storybook/testing-library now uses @testing-library/dom version 9 and @testing-library/user-event version 14! 🎉

To refer to new features and bugfixes and you can check them in the user-event release page and testing-library dom release page.

Upgrade user-event to v14 and testing-library to v9 (#43)

@storybook/testing-library now uses @testing-library/dom version 9 and @testing-library/user-event version 14! 🎉

To refer to new features and bugfixes and you can check them in the user-event release page and testing-library dom release page.


🚀 Enhancement

🐛 Bug Fix

Authors: 3


v0.1.0 (Mon Apr 03 2023)

:tada: This release contains work from a new contributor! :tada:

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

🚀 Enhancement

🐛 Bug Fix

Authors: 3


v0.0.13 (Mon Jun 13 2022)

🐛 Bug Fix

  • Fix dependency of @storybook/instrumenter #22 (@yannbf)

Authors: 1


v0.0.12 (Fri Jun 10 2022)

🐛 Bug Fix

  • loosen version ranges of storybook so we can start bench testing 7.0.0 alpha releases #21 (@ndelangen)

Authors: 1


v0.0.11 (Thu Apr 21 2022)

Release Notes

Revert "feat: upgrade testing library and user event" (#19)

Unfortunately @storybook/testing-library had to downgrade @testing-library/user-event to version 13. User event v14 is working ok for most projects, but projects using Svelte, Vue, HTML and Web components break because of an issue in one of user-event's dependencies.

If you are not affected by this problem and want to use @storybook/testing-library with user-event v14, you can use the @storybook/testing-library@beta version.


🐛 Bug Fix

  • Revert "feat: upgrade testing library and user event" #19 (@yannbf)

Authors: 1


v0.0.10 (Tue Apr 19 2022)

Release Notes

feat: upgrade testing library and user event (#18)

@storybook/testing-library now uses @testing-library/user-event version 14! 🎉

There are several new features and bugfixes and you can check them in the user-event release page.


🐛 Bug Fix

  • feat: upgrade testing library and user event #18 (@yannbf)

Authors: 1


v0.0.9 (Fri Feb 04 2022)

:tada: This release contains work from new contributors! :tada:

Thanks for all your work!

:heart: Yann Braga (@yannbf)

:heart: Gert Hengeveld (@ghengeveld)

:heart: Jean-Michel FRANCOIS (@jmfrancois)

:heart: Michael Shilman (@shilman)

🐛 Bug Fix

  • deps: allow storybook 6.5 prerelease versions #13 (@yannbf)
  • chore: add auto-release process #12 (@yannbf)
  • chore: upgrade libs to be aligned with current stable version #11 (@jmfrancois)
  • feat: support cjs and esm #6 (@yannbf)
  • fix: change output target to commonjs #5 (@yannbf)
  • fix: mutate screen object #4 (@yannbf)
  • feat: add typescript support #1 (@yannbf)

⚠️ Pushed to main

Authors: 4