Repository navigation
Use fs.rmSync to clean up after the codegen executor test - #60363
Merged
Merged
Conversation
Visual regressionNo visual differences at |
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>
ide
force-pushed
the
@ide/codegen-test-rmsync
branch
from
November 29, 2026 10:22
1a40a94 to
8709a78
Compare
ide
marked this pull request as ready for review
November 29, 2026 12:02
chrfalch
reviewed
Nov 29, 2026
chrfalch
left a comment
Collaborator
There was a problem hiding this comment.
Looks good, can be approved
javache
approved these changes
Nov 30, 2026
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 its tests pass:This change removes the directory with
fs.rmSync(outputDir, {recursive: true, force: true}), the replacement Node's deprecation notice gives (DEP0147) and the call the rest of the file already uses.packages/react-native/package.jsonlists Node 26 as supported.Changelog:
[INTERNAL] [FIXED] - Fix the codegen executor test on Node 26
Test Plan:
On Node 26.12.0:
On
main, the tests and snapshots pass and the suite fails inafterAllwith the error above; on this branch the suite passes. ESLint and Prettier pass. I did not run Flow or another Node version.