使用此处找到的 Jest Vue cli 插件运行单元测试时,我目前遇到以下问题。https://www.npmjs.com/package/@vue/cli-plugin-unit-jest
我收到的错误是Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that somet
hing in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@
babel/core" or "babel-core" to see what is calling Babel
我正在使用 Yarn 工作区,想知道强制@vue/cli-plugin-unit-jest
使用 babel-core 版本的最佳方法^7.0.0-0