Может быть, вы можете мне помочь? Я пытаюсь настроить шутки для использования babel @7 Итак, у меня есть:
"jest": "^23.4.1",
"@babel/core": "^7.0.0-beta.54",
"babel-7-jest": "^21.3.3",
"babel-jest": "^20.0.3",
И jest config внутри package.json
"jest": {
"transform": {
"^.+\\.js$": "babel-7-jest",
},
И получил
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
Но если я использую
"jest": {
"transform": {
"^.+\\.js$": "babel-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 something 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.
babel config: https://gist.github.com/SilentImp/1506e9c26d16d9839a4469c6f3ae5c4d
Может, у вас есть идеи?