You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR removes 7 per-package .babelrc.js/.babelrc.cjs files that were previously used to extend the root babel.config.js for Jest. All affected packages (api-server, babel-config, gqlorm, graphql-server, realtime, router, web) have since migrated their test runners to Vitest, making these files dead configuration. The root babel.config.js remains in place and continues to serve build-time transpilation.
Key points:
All 7 deleted files were single-line (or two-line) shims: module.exports = { extends: '../../babel.config.js' }
Every affected package's test script now invokes vitest run, confirming Jest is no longer used in these packages
The packages/babel-config/.babelrc.js even contained an explicit comment: "Even though this package is built without Babel, we need this file for Jest." — further confirming the files were Jest-only
No build pipelines or runtime behaviour are affected; this is a pure dead-config cleanup
Confidence Score: 5/5
This PR is safe to merge — it removes only unused Jest-era Babel config files from packages that have fully migrated to Vitest.
All deleted files were identical one-liner shims whose sole purpose was Jest integration. Every affected package has already switched to Vitest, verified by their package.json test scripts. The root babel.config.js (which still handles builds) is untouched, and nx.json only references that root file. There is no risk of breaking tests, builds, or any other workflow.
No files require special attention.
Important Files Changed
Filename
Overview
packages/api-server/.babelrc.js
Deleted — was a one-liner extending the root babel.config.js for Jest; api-server now uses Vitest so this file was unused.
packages/babel-config/.babelrc.js
Deleted — contained an explicit comment that it was only needed for Jest; babel-config has migrated to Vitest.
packages/gqlorm/.babelrc.cjs
Deleted — CJS variant of the same Jest shim; gqlorm now uses Vitest.
packages/graphql-server/.babelrc.js
Deleted — unused Jest babel shim; graphql-server now uses Vitest.
packages/realtime/.babelrc.js
Deleted — unused Jest babel shim; realtime now uses Vitest.
packages/router/.babelrc.js
Deleted — unused Jest babel shim; router now uses Vitest (a jest.config.js is still present but the test script is vitest run).
packages/web/.babelrc.js
Deleted — unused Jest babel shim; web now uses Vitest.
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Root babel.config.js] -->|extends| B[packages/api-server/.babelrc.js ❌ removed]
A -->|extends| C[packages/babel-config/.babelrc.js ❌ removed]
A -->|extends| D[packages/gqlorm/.babelrc.cjs ❌ removed]
A -->|extends| E[packages/graphql-server/.babelrc.js ❌ removed]
A -->|extends| F[packages/realtime/.babelrc.js ❌ removed]
A -->|extends| G[packages/router/.babelrc.js ❌ removed]
A -->|extends| H[packages/web/.babelrc.js ❌ removed]
I[Jest - no longer used] -.->|previously required| B
I -.->|previously required| C
I -.->|previously required| D
I -.->|previously required| E
I -.->|previously required| F
I -.->|previously required| G
I -.->|previously required| H
J[Vitest ✅ now used] --> K[All 7 packages]
A -->|still used for builds| K
Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci
Try them out by running yarn cedar upgrade -t 3.0.0-canary.13610
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release:choreThis PR is a chore (means nothing for users)
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove old unused babel config files.