DEV Community

Discussion on: Setting up Jest in a Laravel project

Collapse
 
jhynzar profile image
Mj Tapiru

The post is somewhat outdated. I encountered this error too and I'm sure you will run into some more errors, feel free to get back and I'll answer it if I ran into it before.

For the solution:

You should change the .babelrc file to this

{
    "presets": [
        "@babel/preset-env"
    ]
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
zaratedev profile image
Jonathan Zarate

Nice, thanks for report this error. :D