Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tracking]: Test-Related Package Consolidation #30675

Open
4 of 27 tasks
valentinpalkovic opened this issue Feb 26, 2025 · 0 comments
Open
4 of 27 tasks

[Tracking]: Test-Related Package Consolidation #30675

valentinpalkovic opened this issue Feb 26, 2025 · 0 comments
Assignees
Labels
Milestone

Comments

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Feb 26, 2025

This milestone aims to consolidate test-related packages into a unified @storybook/addon-test package. The goal is to simplify testing workflows and ensure all relevant test utilities are maintained under a single addon. The work requires package migrations, updates to CLI behavior, automigrations, and comprehensive documentation.

Items:

1. Promote @storybook/experimental-addon-test to stable @storybook/addon-test

  • Rename and restructure @storybook/experimental-addon-test as @storybook/addon-test
    • Update package.json metadata (name, version, description) in the package
    • Remove "experimental" labels and update all internal references in the codebase

2. Merge test-related packages into core

3. Update CLI to reflect new Test addon behavior

  • Modify the Storybook CLI to include @storybook/addon-test when "Testing" is selected for all Vite-based Storybook projects
    • Make sure that template stories use storybook/test

4. Automigration & Documentation Updates

  • Write an automigration script to transition existing projects to the new addon addon-test
  • Automatically replace old imports (@storybook/test, @storybook/addon-actions, etc.) with storybook/test in user codebases
  • Remove now-redundant dependencies (@storybook/test, @storybook/addon-interactions, @storybook/addon-actions, @storybook/instrumenter) from users’ package.json
  • Update Addon Kit to use storybook/test
  • Provide a clear migration guide
  • Point @storybook/addon-test readme to official documentation
  • Remap https://github.com/storybookjs/storybook/blob/next/code/addons/test/src/vitest-plugin/index.ts#L298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant