我们如何在React 18应用中运行Enzyme测试
原文英文,约700词,阅读约需3分钟。发表于: 。Like many other companies with mature software, we found ourselves at a crossroads with our React application. The app, initially developed in early 2019, was built with React 16 and used Enzyme...
为了满足React应用的升级需求,我们决定同时使用React 16和React 18。通过配置Jest和重命名测试文件,我们可以在不重构500个Enzyme测试的情况下,逐步迁移到React 18,从而在技术债务管理与进展之间取得平衡。