Skip to content

chore: remove unused jest config#4875

Merged
2heal1 merged 2 commits into
mainfrom
chore/remove-unused-jest
Jul 8, 2026
Merged

chore: remove unused jest config#4875
2heal1 merged 2 commits into
mainfrom
chore/remove-unused-jest

Conversation

@2heal1

@2heal1 2heal1 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Description

Removes stale Jest setup from packages and example apps that no longer use it after the rstest migration.

This PR deletes unused Jest config files and obsolete spec tsconfigs, removes unneeded Jest type/dependency entries from the affected package manifests and template, and updates the lockfile accordingly. Jest itself is intentionally kept where packages still have active Jest test scripts.

Validation run:

  • pnpm install --frozen-lockfile --ignore-scripts
  • pnpm exec prettier --check $(git diff --name-only --diff-filter=ACMR)
  • pnpm exec turbo run test --filter=@module-federation/runtime --filter=@module-federation/runtime-core --filter=@module-federation/retry-plugin --filter=@module-federation/rsbuild-plugin --filter=@module-federation/cli --filter=@module-federation/devtools --filter=create-module-federation --filter=@module-federation/third-party-dts-extractor --filter=@module-federation/native-federation-typescript --filter=@module-federation/native-federation-tests --filter=@module-federation/runtime-tools --force
  • pnpm exec turbo run build --filter=@module-federation/runtime --filter=@module-federation/runtime-core --filter=@module-federation/retry-plugin --filter=@module-federation/rsbuild-plugin --filter=@module-federation/cli --filter=@module-federation/devtools --filter=create-module-federation --filter=@module-federation/third-party-dts-extractor --filter=@module-federation/native-federation-typescript --filter=@module-federation/native-federation-tests --filter=@module-federation/dts-plugin --force
  • git diff --check

Full-repo Prettier was also attempted, but it is currently blocked by pre-existing generated files outside this change. The changed files pass Prettier.

No changeset is included because this cleanup does not change published package behavior.

Related Issue

N/A - maintenance cleanup.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 736f863

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@2heal1 2heal1 force-pushed the chore/remove-unused-jest branch from 66cefa5 to 078f8f1 Compare July 8, 2026 06:15
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview Environment Ready!

Name Status URL
website-new ✅ Active https://nestor-lopez-27764-website-new-core-module-federa-45c19f9... ↗

Details:

  • Latest Commit: 736f863
  • Created at: 7/8/2026, 6:36:06 AM

@pkg-pr-new

pkg-pr-new Bot commented Jul 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@736f863

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@736f863

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@736f863

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@736f863

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@736f863

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@736f863

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@736f863

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@736f863

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@736f863

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@736f863

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@736f863

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@736f863

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@736f863

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@736f863

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@736f863

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@736f863

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@736f863

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@736f863

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@736f863

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@736f863

@module-federation/playground

pnpm add https://pkg.pr.new/@module-federation/playground@736f863

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@736f863

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@736f863

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@736f863

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@736f863

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@736f863

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@736f863

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@736f863

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@736f863

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@736f863

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@736f863

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@736f863

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@736f863

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@736f863

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@736f863

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@736f863

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@736f863

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@736f863

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@736f863

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@736f863

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@736f863

commit: 736f863

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

1 package(s) changed, 41 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/runtime 20.0 kB -13 B (-0.1%) 715 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/runtime n/a n/a n/a n/a

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 21.4 kB -21 B (-0.1%) 23.0 kB -16 B (-0.1%) +1.6 kB +5 B

Total dist (raw): 35.69 MB (-13 B (-0.0%))
Total ESM gzip: 122.9 kB (no change)
Total web bundle (gzip): 0 B (no change)
Total node bundle (gzip): 0 B (no change)
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 0 B (no change)
Tracked ./bundler node bundle (gzip): 0 B (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

Bundle errors

  • @module-federation/bridge-react: web: build is not a function; node: build is not a function
  • @module-federation/bridge-react-webpack-plugin: web: build is not a function; node: build is not a function
  • @module-federation/bridge-shared: web: build is not a function; node: build is not a function
  • @module-federation/bridge-vue3: web: build is not a function; node: build is not a function
  • @module-federation/cli: web: build is not a function; node: build is not a function
  • @module-federation/core: web: build is not a function; node: build is not a function
  • @module-federation/devtools: web: build is not a function; node: build is not a function
  • @module-federation/dts-plugin: web: build is not a function; node: build is not a function
  • @module-federation/enhanced: web: build is not a function; node: build is not a function
  • @module-federation/error-codes: web: build is not a function; node: build is not a function
  • @module-federation/esbuild: web: build is not a function; node: build is not a function
  • @module-federation/inject-external-runtime-core-plugin: web: build is not a function; node: build is not a function
  • @module-federation/managers: web: build is not a function; node: build is not a function
  • @module-federation/manifest: web: build is not a function; node: build is not a function
  • @module-federation/metro: web: build is not a function; node: build is not a function
  • @module-federation/metro-plugin-rnc-cli: web: build is not a function; node: build is not a function
  • @module-federation/metro-plugin-rnef: web: build is not a function; node: build is not a function
  • @module-federation/metro-plugin-rock: web: build is not a function; node: build is not a function
  • @module-federation/modern-js: web: build is not a function; node: build is not a function
  • @module-federation/modern-js-v3: web: build is not a function; node: build is not a function
  • @module-federation/native-federation-tests: web: build is not a function; node: build is not a function
  • @module-federation/native-federation-typescript: web: build is not a function; node: build is not a function
  • @module-federation/nextjs-mf: web: build is not a function; node: build is not a function
  • @module-federation/node: web: build is not a function; node: build is not a function
  • @module-federation/observability-plugin: web: build is not a function; node: build is not a function
  • @module-federation/playground: web: build is not a function; node: build is not a function
  • @module-federation/retry-plugin: web: build is not a function; node: build is not a function
  • @module-federation/rsbuild-plugin: web: build is not a function; node: build is not a function
  • @module-federation/rspack: web: build is not a function; node: build is not a function
  • @module-federation/rspress-plugin: web: build is not a function; node: build is not a function
  • @module-federation/runtime: web: build is not a function; node: build is not a function
  • @module-federation/runtime ./bundler: web: build is not a function; node: build is not a function
  • @module-federation/runtime-core: web: build is not a function; node: build is not a function
  • @module-federation/runtime-tools: web: build is not a function; node: build is not a function
  • @module-federation/runtime-tools ./bundler: web: build is not a function; node: build is not a function
  • @module-federation/sdk: web: build is not a function; node: build is not a function
  • @module-federation/storybook-addon: web: build is not a function; node: build is not a function
  • @module-federation/third-party-dts-extractor: web: build is not a function; node: build is not a function
  • @module-federation/treeshake-server: web: build is not a function; node: build is not a function
  • @module-federation/utilities: web: build is not a function; node: build is not a function
  • @module-federation/webpack-bundler-runtime: web: build is not a function; node: build is not a function
  • @module-federation/webpack-bundler-runtime ./bundler: web: build is not a function; node: build is not a function
  • create-module-federation: web: build is not a function; node: build is not a function

@2heal1 2heal1 merged commit 7178677 into main Jul 8, 2026
24 checks passed
@2heal1 2heal1 deleted the chore/remove-unused-jest branch July 8, 2026 07:14
@2heal1 2heal1 mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant