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

Offen
#7,277 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, nodejs
Bereich
testing-qa, tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Ruby
Sterne
382
Forks
547
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
39

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus rubyforgood/casa

Alle Issues in rubyforgood/casa

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.