---
title: "Discussion on \"[Log] Jest: Getting Started\" | Hashnode"
description: "Discussion on \"[Log] Jest: Getting Started\". Official reference \nCreate a project directory.\nnpm init -y\nnpm i -D jest\ntouch index.js\ntouch calc.js\n\nWrite code.\nfunction add(a, b) {\n    return a + b\n}\nmodule.exports = add\n\nMake test directory.\nmkdir test\ntouch test/calc.test.js\n\nWrite test code..."
url: "https://hashnode.com/posts/log-jest-getting-started/5ff07c7a786e5b71c88aed7c"
---

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

Discussion

# [\[Log\] Jest: Getting Started](https://kaisei.hashnode.dev/log-jest-getting-started?utm_source=hashnode&utm_medium=feed)

Official reference Create a project directory. npm init -y npm i -D jest touch index.js touch calc.js Write code. function add(a, b) { return a + b } module.exports = add Make test directory. mkdir test touch test/calc.test.js Write test code...

Jan 2, 2021 · 1 min read · kaisei.hashnode.dev  
Read the article

-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#jest](https://hashnode.com/tag/jest)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Kaisei Waki](https://hashnode.com/@kaisei)

@kaisei

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
