---
title: "Discussion on \"How to setup jest for ES6 syntax\" | Hashnode"
description: "Discussion on \"How to setup jest for ES6 syntax\". Install the following packages:\n\"@babel/core\": \"^7.15.0\",\n\"@babel/preset-env\": \"^7.15.0\",\n\"babel-jest\": \"^26.0.1\",\n\"jest\": \"^26.0.1\"\n\nCreate a file babel.config.json to be used by babel:\n{\n  \"presets\": [\"@babel/preset-env\"]\n}\n\nNow you should be able ..."
url: "https://hashnode.com/posts/how-to-setup-jest-for-es6-syntax/62a2d2b91ba253b13869a2c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to setup jest for ES6 syntax](https://jsbisht.hashnode.dev/how-to-setup-jest-for-es6-syntax?utm_source=hashnode&utm_medium=feed)

Install the following packages: "@babel/core": "^7.15.0", "@babel/preset-env": "^7.15.0", "babel-jest": "^26.0.1", "jest": "^26.0.1" Create a file babel.config.json to be used by babel: { "presets": \["@babel/preset-env"\] } Now you should be able ...

Jun 10, 2022 · 1 min read · jsbisht.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jest](https://hashnode.com/tag/jest)
-   [#testing](https://hashnode.com/tag/testing)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[JAGDEEP BISHT](https://hashnode.com/@jsbisht)

@jsbisht · Bengaluru, India

  
[View profile](https://hashnode.com/@jsbisht)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
