Repository navigation
Conversation
Node 26 no longer accepts the `recursive` option of `fs.rmdirSync`: the
call throws ERR_INVALID_ARG_VALUE. The `afterAll` in
generate-artifacts-executor-test.js makes that call, so on Node 26 Jest
reports the suite as failed although all 52 of its tests pass.
Remove the output directory with `fs.rmSync(path, {recursive: true,
force: true})`, the replacement that Node's deprecation notice
(DEP0147) gives and the call the rest of the file already uses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Summary:
Node 26 no longer accepts the
recursiveoption offs.rmdirSync; the call throwsERR_INVALID_ARG_VALUE. TheafterAllofgenerate-artifacts-executor-test.jsmakes that call, so on Node 26 Jest reports the suite as failed although all of its tests pass:This change removes the directory with
fs.rmSync(outputDir, {recursive: true, force: true}), the replacement that Node's deprecation notice gives (DEP0147) and the call the rest of the file already uses.packages/react-native/package.jsondeclares support for Node>= 26.0.0.Changelog:
[INTERNAL] [FIXED] - Fix the codegen executor test on Node 26
Test Plan:
Run on Node 26.12.0 against
94aee19ac9:main: 52 tests and 24 snapshots pass, and the suite fails inafterAllwith the error above.yarn eslint --max-warnings 0andprettier --checkpass on the changed file. I did not run Flow or another Node version for this one-line change.🤖 Generated with Claude Code