News for hackers. Stuff that matters.
Re:Refactoring Barrel Files with Codemods by gtsop on Monday November 11, 2024 @12:01PM (#42108602)
Relevant: The codebase I worked on was to huge and too uncovered by tests to modify automatically. The pain point was jest tests, due to barrel files. I ended up making this plugin that is meant to do codemods only durring jest tests, skips all re-exports and thus barrel files. Performance of tests have gone 2x

Having legacy codebases in mind, I built in utilities to skip modifying code that breaks when modified

https://github.com/gtsop/babel-jest-boost

Re:Refactoring Barrel Files with Codemods by mmazzarolo on Monday November 11, 2024 @12:06PM (#42108635)
This looks great, thanks for sharing!