---
title: "Discussion on \"Configure Jest to use it with NodeJS ECMAScript Modules\" | Hashnode"
description: "Discussion on \"Configure Jest to use it with NodeJS ECMAScript Modules\". Initialize your application:\n  npm init\n\n\nTo use ES modules, add type: \"module\" to package.json file.\n\nInstall Jest\n npm i jest\n\n\nInitialize Jest\n  npm init jest@latest\n\n\nIn jest.config.mjs file: de-comment transform key and assign it a value like tr..."
url: "https://hashnode.com/posts/configure-jest-to-use-it-with-nodejs-ecmascript-modules/66e13a94f0abc173771dc72a"
---

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

Discussion

# [Configure Jest to use it with NodeJS ECMAScript Modules](https://ayanabilothman.hashnode.dev/configure-jest-to-use-it-with-nodejs-ecmascript-modules?utm_source=hashnode&utm_medium=feed)

Initialize your application: npm init To use ES modules, add type: "module" to package.json file. Install Jest npm i jest Initialize Jest npm init jest@latest In jest.config.mjs file: de-comment transform key and assign it a value like tr...

Sep 11, 2024 · 1 min read · ayanabilothman.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#jest](https://hashnode.com/tag/jest)
-   [#babel](https://hashnode.com/tag/babel)
-   [#ecmascript](https://hashnode.com/tag/ecmascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#modules](https://hashnode.com/tag/modules)
-   [#transpiler](https://hashnode.com/tag/transpiler)
-   [#testing](https://hashnode.com/tag/testing)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[ِAya Nabil Othman](https://hashnode.com/@AyaNabilOthman)

@AyaNabilOthman

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

JavaScript Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
