Skip to content

fix(fs-access-mode-constants): don't modify other thing#382

Open
AugustinMauroy wants to merge 6 commits intomainfrom
fix-fs-balbala
Open

fix(fs-access-mode-constants): don't modify other thing#382
AugustinMauroy wants to merge 6 commits intomainfrom
fix-fs-balbala

Conversation

@AugustinMauroy
Copy link
Member

Description

Alex (codemod) reported that this codemod make changes on other file.

So:

  • I change tests file name for better understanding
  • I refracto to use more utility in goal of reducing complexity

@AugustinMauroy AugustinMauroy requested a review from a team March 6, 2026 08:36
@AugustinMauroy AugustinMauroy added the awaiting reviewer Author has responded and needs action from the reviewer label Mar 6, 2026
Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

How-so does the migration unintentionally affect other files?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The utilities here could use some unit tests 🙂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't understand what is unclear 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean that you wan unit test on function written inside the codemod ?
that need to be done as this:

  • move them to utility package
  • add tests

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it necessary to extract them into a package? Just co-locate a .test.ts file here and cover the utils, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah we can do that I'm also going to see if we can reduce amount of code there

Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New changes look good 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviewer Author has responded and needs action from the reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants