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
{{ message }}
Repository navigation
Upgrade Babel to 8 together with Jest's Babel deps (#7252) #7277
Dependabot's #7252 bumps @babel/core from 7.29.7 to 8.0.7. It fails npm_lint, rspec and docker at npm install with ERESOLVE, before any test runs:
babel-jest@"30.5.1" from jest-config@30.5.1
dev @babel/preset-env@"^7.29.7" from the root project
babel-jest (Jest 30) and @babel/preset-env@^7 both need @babel/core 7, so @babel/core can't move to 8 by itself.
Context
Babel is only used for Jest (babel.config.js; npm run test). The app's JS is bundled by ESBuild (bin/asset_bundling_scripts/build_js.js), which doesn't use Babel. So this only affects the test toolchain, never production code.
Tasks
Find out whether babel-jest / Jest and @babel/preset-env have releases that support Babel 8 yet
If yes: one PR bumping @babel/core, @babel/preset-env and babel-jest/Jest together. Check babel.config.js against the Babel 8 migration guide, and make sure npm run test passes.
Activity