feat(rstest): add federation integration plugin - #4920
Conversation
🦋 Changeset detectedLatest commit: b1b37d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 48 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/dts-plugin
@module-federation/enhanced
@module-federation/error-codes
@module-federation/esbuild
@module-federation/managers
@module-federation/manifest
@module-federation/metro
@module-federation/metro-plugin-rnc-cli
@module-federation/metro-plugin-rnef
@module-federation/metro-plugin-rock
@module-federation/modern-js
@module-federation/modern-js-v3
@module-federation/native-federation-tests
@module-federation/native-federation-typescript
@module-federation/nextjs-mf
@module-federation/node
@module-federation/observability-plugin
@module-federation/playground
@module-federation/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@module-federation/rstest
@module-federation/runtime
@module-federation/runtime-core
@module-federation/runtime-tools
@module-federation/sdk
@module-federation/storybook-addon
@module-federation/third-party-dts-extractor
@module-federation/treeshake-frontend
@module-federation/treeshake-server
@module-federation/typescript
@module-federation/utilities
@module-federation/webpack-bundler-runtime
@module-federation/bridge-react
@module-federation/bridge-react-webpack-plugin
@module-federation/bridge-shared
@module-federation/bridge-vue3
@module-federation/inject-external-runtime-core-plugin
commit: |
|
🚀 Preview Environment Ready!
Details:
|
Bundle Size Report11 package(s) changed, 32 unchanged. Package dist + ESM entry
Bundle targets
Consumer scenarios
Total dist (raw): 35.82 MB (+29.7 kB (+0.1%)) Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: acb80807cc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9aoy
left a comment
There was a problem hiding this comment.
I found two runtime/publishing issues that are not covered by the current option-level tests, import smoke checks, or Publint. Details are included inline.
Description
Adds the focused
@module-federation/rstestpackage for Node/JSDOM and browser test environments.For Node targets, the plugin uses the Rsbuild exposed API to enable Rstest federation compatibility automatically when the runner provides it. Browser targets remain unchanged, and older Rstest versions without the exposed API retain their existing behavior.
The package ships ESM and CommonJS outputs with matching declaration files, documents the Rstest version requirement, and joins the fixed release group. This supersedes the broad, closed experiment in #4320.
Related Issue
Types of changes
Validation
pnpm install --frozen-lockfilepnpm --filter @module-federation/rstest run test— 34/34 passedpnpm --filter @module-federation/rstest run build— passed; Publint passedpnpm --filter @module-federation/rstest run lintpnpm exec prettier --check .Cross-repository Rstest example validation will follow with the pkg.pr.new preview produced by this PR.
Checklist