旧create-react-app项目集成jest+enzyme
/*--> */ /*--> */ 在create-react-app创建的老项目上面集成jest-enzyme发现用上一篇博客的配置报错: 看报错知道是上篇博客的.babelrc.js的配置没有生效。 使用npm run eject指令将create-react-app项目的配置暴露出来,命令执行结果: Copying files into D:\oy\temp\xxx Adding \config\env.js to the project Adding \config\paths.js to the project Adding \config\polyfills.js to the project Adding \config\webpack.config.dev.js to the project Adding \config\webpack.config.prod.js to the project Adding \config\webpackDevServer.config.js to the project Adding \config\jest\cssTransform.js to the project Adding \config\jest\fileTransform.js to the project Adding \scripts\build.js