DEV Community

Discussion on: How to configure Jest on a Next.js project

Collapse
 
jbranchaud profile image
Josh Branchaud

Without Step 4, I got a pretty obscure error about needing to add @babel/plugin-transform-react-jsx to the plugins section of my Babel config in order to get support for the experimental syntax that is 'jsx'.

Adding .babelrc with the specified preset fixed it. Thanks for documenting these steps!