3 ms·
Refactoring Barrel Files with Codemods
- deleted 2y ago[deleted]
- gtsop 2y agoRelevant: 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 https://github.com/gtsop/babel-jest-boost
- mmazzarolo 2y agoThis looks great, thanks for sharing!
- deleted 2y ago[deleted]