ESLint: Update deprecated @storybook/test reference to storybook/test#34430
Conversation
…orybook/test The `use-storybook-testing-library` ESLint rule was suggesting imports from `@storybook/test` and auto-fixing to `@storybook/testing-library`, both of which are deprecated in Storybook v10. Updated the error message, auto-fix, and suggestion fix to use `storybook/test` instead. Fixes storybookjs#34422 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
yannbf
left a comment
There was a problem hiding this comment.
Great change, thanks for your contribution!
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughUpdates the ESLint plugin rule Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes #34422
The
use-storybook-testing-libraryESLint rule was suggesting imports from@storybook/testin its error message, and auto-fixing to@storybook/testing-library— both of which are deprecated in Storybook v10. The correct import path isstorybook/test(per the official docs).Fix
storybook/testinstead of@storybook/test/@storybook/testing-librarystorybook/testinstead of@storybook/testing-librarystorybook/testTest plan
storybook/testinstead of@storybook/teststorybook/test🤖 Generated with Claude Code
Summary by CodeRabbit
storybook/testrather than@storybook/testing-library. Error messages and auto-fix suggestions were updated to guide users toward the correct import path.