Upgrade Babel to 8 together with Jest's Babel deps (#7252)

オープン
#7,277 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, nodejs

調査の方向性

Start by checking whether the Jest/Babel versions in the project’s dependency files support Babel 8, then read babel.config.js and .github/dependabot.yml. Follow the applicable task path: coordinate compatible dependency upgrades and run npm run test, or configure Dependabot’s ignore rule and close #7252 if support is unavailable. Done means the selected path is implemented and the test-toolchain install issue is addressed.

索引モデルが issue の本文から書いたものです。

説明

dependencies Difficulty: Intermediate Help Wanted javascript 🧪 Tests

Problem

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 [email protected]
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.
  • If no: add an ignore for @babel/* major versions to the npm entry in .github/dependabot.yml (with a comment linking this issue), and close #7252
  • Optional: try whether Jest can drop Babel entirely, e.g. via a native ESM or ESBuild-based transform

Difficulty: intermediate. Good for someone who likes JS tooling.

主要言語
Ruby
スター
382
フォーク
547
平均マージ
2日 22時間
マージ済み PR(30日)
46

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rubyforgood/casa のほかの issue

rubyforgood/casa の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。