Running test via jest, I get `Unexpected token` in included .jsx files

Another place where Jest may throw Unexpected token is on @ when using in @connect (meets in majority of tutorials). Attach babel-plugin-transform-decorators-legacy in your package.json file, run npm install and make sure there are lines "presets": ["es2015", "react", "stage-0"] and "plugins": ["transform-decorators-legacy"] in your .babelrc file.


Fixed it. I had my .babelrc in the wrong folder. It should have been in the root directory. When I moved it there, it all worked.

{
  "presets": [
     "react",
     "es2015"
  ]
}