Repository navigation
Run the tests on Babel 8 in CI - #127
Merged
Merged
Conversation
Add a babel-8 try scenario that overrides the @babel packages the tests load. It runs on Node 24. The test helper wireScope now uses babel.parseSync, because Babel 8 parse is async. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ef4
approved these changes
Nov 24, 2026
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a CI job that runs the test suite on Babel 8.
The new
babel-8try scenario overrides@babel/core,@babel/traverseand the Babel plugins that the tests load. The devDependencies stay on Babel 7.Babel 8 needs Node 22.18 or 24.11 and newer. The
.npmrcfile setsuse-node-version=18.20.2. The scenario setsnpm_config_use_node_versionto run on Node 24. The install step now gets the scenario env too.The scenario skips install scripts. The
preparescript runstsc, and the source does not type check against the Babel 8 types yet.The
wireScopetest helper now usesbabel.parseSync. On Babel 8,parsewithout a callback does not return the AST.parseSyncworks on Babel 7 too.🤖 Generated with Claude Code