Maybe you may help me? I try to configure jest to use babel@7 So I have:
"jest": "^23.4.1",
"@babel/core": "^7.0.0-beta.54",
"babel-7-jest": "^21.3.3",
"babel-jest": "^20.0.3",
And jest config inside package.json
"jest": {
"transform": {
"^.+\\.js$": "babel-7-jest",
},
And got
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string
But if I use
"jest": {
"transform": {
"^.+\\.js$": "babel-jest",
},
I got
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
Maybe you have some ideas?