📜  错误:需要 Babel“^7.0.0-0”,但加载了“6.26.3”. If - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:53.154000             🧑  作者: Mango

代码示例2
Looks like you need
to install babel-core as the docs 
suggest: https://jestjs.io/docs/en/getting-started#using-babel

yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime