Skip to content

Move: Addon jest into it's own repository#32646

Merged
ndelangen merged 2 commits into
nextfrom
norbert/remove-addon-jest
Oct 17, 2025
Merged

Move: Addon jest into it's own repository#32646
ndelangen merged 2 commits into
nextfrom
norbert/remove-addon-jest

Conversation

@ndelangen
Copy link
Copy Markdown
Member

@ndelangen ndelangen commented Oct 6, 2025

What I did

Remove addon-jest from monorepo

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

Summary by CodeRabbit

  • Chores
    • Removed the Jest addon from the product, including its panel registration, build entries, version mapping, and dependency/resolution references across packages and test storybooks.
  • Documentation
    • Deleted the Jest addon README and related docs.
  • Tests
    • Removed tests related to Jest parameter handling and integration.
  • Refactor
    • Removed the Jest addon’s source modules, configuration, and integration code from the codebase.

@ndelangen ndelangen self-assigned this Oct 6, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Oct 6, 2025

📝 Walkthrough

Walkthrough

This PR removes the Storybook Jest addon: all source, build/config, packaging, tests, docs, and references across core maps, build scripts, and test-storybook resolutions are deleted.

Changes

Cohort / File(s) Summary
Addon source removal
code/addons/jest/src/* (components/*, hoc/*, index.ts, manager.tsx, shared.ts, types.ts)
Deletes all addon implementation: UI components (Panel, Result, Message), HOC/provider, integration entry, manager registration, shared constants/helpers, and types.
Addon package/config cleanup
code/addons/jest/package.json, code/addons/jest/build-config.ts, code/addons/jest/tsconfig.json, code/addons/jest/vitest.config.ts, code/addons/jest/project.json, code/addons/jest/manager.js
Removes package manifest, build config, TypeScript/Vitest/Nx configs, and manager shim.
Docs and tests deletion
code/addons/jest/README.md, code/addons/jest/src/shared.test.ts
Removes addon README and unit tests for shared utilities.
Core references
code/core/src/common/versions.ts, code/core/src/core-server/__for-testing__/main.ts, code/package.json
Drops @storybook/addon-jest from versions map, test server config, and root dependencies.
Build pipeline updates
scripts/build/entry-configs.ts
Removes @storybook/addon-jest from build entries mapping.
Linting ignore update
scripts/.eslintignore
Removes an ignore entry for the addon test path so that file will be linted.
Test storybooks resolutions
test-storybooks/**/package.json (multiple: ember-cli, external-docs, portable-stories-kitchen-sink/*, server-kitchen-sink, standalone-preview, yarn-pnp)
Removes resolution overrides that pointed to the local code/addons/jest package across test-storybook projects.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User as Developer
  participant Preview as Storybook Preview
  participant Decorator as withTests decorator
  participant Channel as Channel
  participant Manager as Manager Panel

  rect rgba(220,235,255,0.6)
    note over Preview,Decorator: Before removal
    Developer->>Preview: Render story
    Preview->>Decorator: Run withTests
    Decorator->>Channel: Emit ADD_TESTS(tests)
    Channel-->>Manager: Broadcast ADD_TESTS
    Manager->>Manager: Render Tests panel
  end

  rect rgba(255,240,230,0.6)
    note over Preview,Manager: After removal
    Developer->>Preview: Render story
    Preview-->>Preview: No withTests decorator
    Note right of Channel: No ADD_TESTS events emitted
    Manager->>Manager: No Tests panel registered
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related issues

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch norbert/remove-addon-jest

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aef45e5 and 1b756c7.

⛔ Files ignored due to path filters (1)
  • code/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • code/core/src/common/versions.ts (0 hunks)
  • code/package.json (0 hunks)
💤 Files with no reviewable changes (2)
  • code/package.json
  • code/core/src/common/versions.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: normal
  • GitHub Check: Core Unit Tests, windows-latest

Comment @coderabbitai help to get the list of available commands and usage tips.

@ndelangen ndelangen added addon: jest patch:yes Bugfix & documentation PR that need to be picked to main branch ci:normal maintenance User-facing maintenance tasks labels Oct 6, 2025
@ndelangen ndelangen changed the title remove addon jest Move: Addon jest into it's own repository Oct 6, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
test-storybooks/portable-stories-kitchen-sink/vue3/package.json (2)

10-10: Remove obsolete Jest script (optional).

Since the addon is removed and Jest isn’t used here, consider dropping the placeholder script.

-    "jest": "echo 'Jest tests are not implemented!'",

61-61: Remove unused @testing-library/jest-dom — no imports or matcher calls found in this package; drop it from devDependencies.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 38b157d and aef45e5.

⛔ Files ignored due to path filters (2)
  • code/addons/jest/docs/storybook-addon-jest.gif is excluded by !**/*.gif
  • code/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (30)
  • code/addons/jest/README.md (0 hunks)
  • code/addons/jest/build-config.ts (0 hunks)
  • code/addons/jest/manager.js (0 hunks)
  • code/addons/jest/package.json (0 hunks)
  • code/addons/jest/project.json (0 hunks)
  • code/addons/jest/src/components/Message.tsx (0 hunks)
  • code/addons/jest/src/components/Panel.tsx (0 hunks)
  • code/addons/jest/src/components/Result.tsx (0 hunks)
  • code/addons/jest/src/hoc/provideJestResult.tsx (0 hunks)
  • code/addons/jest/src/index.ts (0 hunks)
  • code/addons/jest/src/manager.tsx (0 hunks)
  • code/addons/jest/src/shared.test.ts (0 hunks)
  • code/addons/jest/src/shared.ts (0 hunks)
  • code/addons/jest/src/types.ts (0 hunks)
  • code/addons/jest/tsconfig.json (0 hunks)
  • code/addons/jest/vitest.config.ts (0 hunks)
  • code/core/src/common/versions.ts (0 hunks)
  • code/core/src/core-server/__for-testing__/main.ts (0 hunks)
  • code/package.json (0 hunks)
  • scripts/.eslintignore (0 hunks)
  • scripts/build/entry-configs.ts (0 hunks)
  • test-storybooks/ember-cli/package.json (0 hunks)
  • test-storybooks/external-docs/package.json (0 hunks)
  • test-storybooks/portable-stories-kitchen-sink/nextjs/package.json (0 hunks)
  • test-storybooks/portable-stories-kitchen-sink/react/package.json (0 hunks)
  • test-storybooks/portable-stories-kitchen-sink/svelte/package.json (0 hunks)
  • test-storybooks/portable-stories-kitchen-sink/vue3/package.json (1 hunks)
  • test-storybooks/server-kitchen-sink/package.json (0 hunks)
  • test-storybooks/standalone-preview/package.json (0 hunks)
  • test-storybooks/yarn-pnp/package.json (0 hunks)
💤 Files with no reviewable changes (29)
  • test-storybooks/external-docs/package.json
  • code/core/src/core-server/for-testing/main.ts
  • code/package.json
  • code/addons/jest/src/types.ts
  • test-storybooks/ember-cli/package.json
  • scripts/.eslintignore
  • code/addons/jest/vitest.config.ts
  • scripts/build/entry-configs.ts
  • code/addons/jest/package.json
  • test-storybooks/standalone-preview/package.json
  • code/addons/jest/src/components/Message.tsx
  • test-storybooks/portable-stories-kitchen-sink/svelte/package.json
  • code/addons/jest/build-config.ts
  • code/addons/jest/src/index.ts
  • test-storybooks/server-kitchen-sink/package.json
  • test-storybooks/portable-stories-kitchen-sink/nextjs/package.json
  • code/addons/jest/project.json
  • code/addons/jest/src/components/Result.tsx
  • test-storybooks/portable-stories-kitchen-sink/react/package.json
  • code/addons/jest/tsconfig.json
  • code/addons/jest/manager.js
  • code/addons/jest/src/hoc/provideJestResult.tsx
  • code/addons/jest/README.md
  • test-storybooks/yarn-pnp/package.json
  • code/core/src/common/versions.ts
  • code/addons/jest/src/manager.tsx
  • code/addons/jest/src/components/Panel.tsx
  • code/addons/jest/src/shared.ts
  • code/addons/jest/src/shared.test.ts
🧰 Additional context used
📓 Path-based instructions (1)
test-storybooks/**

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Maintain test configurations and assets under test-storybooks/ for Storybook testing

Files:

  • test-storybooks/portable-stories-kitchen-sink/vue3/package.json
🧠 Learnings (2)
📚 Learning: 2025-09-25T09:21:27.284Z
Learnt from: CR
PR: storybookjs/storybook#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-25T09:21:27.284Z
Learning: Applies to code/**/playwright.config.@(js|ts|mjs|cjs) : Use Playwright 1.52.0 for E2E tests and keep Playwright configuration aligned

Applied to files:

  • test-storybooks/portable-stories-kitchen-sink/vue3/package.json
📚 Learning: 2025-09-25T09:21:27.284Z
Learnt from: CR
PR: storybookjs/storybook#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-09-25T09:21:27.284Z
Learning: Applies to test-storybooks/** : Maintain test configurations and assets under test-storybooks/ for Storybook testing

Applied to files:

  • test-storybooks/portable-stories-kitchen-sink/vue3/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: normal
  • GitHub Check: Danger JS
  • GitHub Check: Core Unit Tests, windows-latest
🔇 Additional comments (2)
test-storybooks/portable-stories-kitchen-sink/vue3/package.json (2)

18-18: Playwright pinned to 1.52.0 — consistent with guidance.

Also applies to: 52-52, 58-58


17-53: No remaining @storybook/addon-jest references—ready to merge Verified no code or config references remain.

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Oct 6, 2025

View your CI Pipeline Execution ↗ for commit 1b756c7

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 47s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-17 08:00:10 UTC

@storybook-app-bot
Copy link
Copy Markdown

storybook-app-bot Bot commented Oct 6, 2025

Package Benchmarks

Commit: 1b756c7, ran on 17 October 2025 at 07:49:03 UTC

No significant changes detected, all good. 👏

@Sidnioulz
Copy link
Copy Markdown
Contributor

@ndelangen curious to know where the addon will go from now on. Is it on storybookjs? storybook-eol?

I'll need to move some code from the a11y branch that fixes issues in the Jest addon's tabbar and aligns a few UI quirks on the rest of the UI.

@jonniebigodes
Copy link
Copy Markdown
Contributor

@ndelangen I'll do a deeper search, but for now, docs-wise, it would be helpful to update the following files and references with the new location for the addon:

I'll follow up with you on any other findings, or push a pull request myself once this is in.

@ndelangen
Copy link
Copy Markdown
Member Author

@Sidnioulz https://github.com/storybookjs/addon-jest <-- here

Copy link
Copy Markdown
Contributor

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 17, 2025
@ndelangen ndelangen merged commit ebf32a7 into next Oct 17, 2025
59 checks passed
@ndelangen ndelangen deleted the norbert/remove-addon-jest branch October 17, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addon: jest ci:normal maintenance User-facing maintenance tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants