---
title: "Comment by Carlos Guevara on \"How to set up jest for es module\" | Hashnode"
description: "Hi, its worked! could you explain a little bit about why is the .babelrc config needed?"
url: "https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6/comment/62acf0ca3d2cd8400b1bd770"
---

[Discussion](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6)

Comment [How to set up jest for es module](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6)

[Carlos Guevara](https://hashnode.com/@dejitaru)

[Jun 17, 2022](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6/comment/62acf0ca3d2cd8400b1bd770)

Hi, its worked! could you explain a little bit about why is the .babelrc config needed?

[Marcin Wosinek](https://hashnode.com/@marcin-wosinek)

[Jun 18, 2022](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6/comment/62acf0ca3d2cd8400b1bd770#reply-62ad7e66cc6d8844e0df3d66)

Good question—I most likely added it based on some troubleshooting and advice I found online. It looks like Jest uses babel, but the configuration it has doesn't support a specific module structure.

It's almost a year ago, so maybe there are newer versions of tools available, and this configuration is not needed anymore. You can remove the plugin line from the `.babelrc`, and see if it breaks—if not, removing the plugin & the file should be fine too.

[Anonymous User](https://hashnode.com/@anonymous243)

[Feb 14, 2024](https://hashnode.com/posts/how-to-set-up-jest-for-es-module/61210c18a5d08237f40e09d6/comment/62acf0ca3d2cd8400b1bd770#reply-65cc8933818a596c36fc9462)

[Marcin Wosinek](https://hashnode.com/@marcin-wosinek) guess it is not required. its running fine even when i remove plugin property
