---
title: "Discussion on \"Learning How to Unit Test a Smart Contract with Hardhat\" | Hashnode"
description: "Discussion on \"Learning How to Unit Test a Smart Contract with Hardhat\". how to unit test a smart contract using hardhat-javascript"
url: "https://hashnode.com/posts/learning-how-to-unit-test-a-smart-contract-with-hardhat/63c3215fcb10fa4b35879a40"
---

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

Discussion

# [Learning How to Unit Test a Smart Contract with Hardhat](https://osmanozdemir.hashnode.dev/learning-how-to-unit-test-a-smart-contract-with-hardhat?utm_source=hashnode&utm_medium=feed)

how to unit test a smart contract using hardhat-javascript

Jan 14, 2023 · 8 min read · osmanozdemir.hashnode.dev  
Updated Feb 2, 2023  
Read the article

-   [#hardhat](https://hashnode.com/tag/hardhat)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Osman Ozdemir](https://hashnode.com/@osmanozdemir1)

@osmanozdemir1

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

## Responses 1

Markdown supported · ⌘↵ to post

[LenaCodes](https://hashnode.com/@LenaCodes)

[Jun 7, 2023](https://hashnode.com/posts/learning-how-to-unit-test-a-smart-contract-with-hardhat/63c3215fcb10fa4b35879a40/comment/648074f6837566372d40796b)

Thank you for this article. Helped me a lot.

[Osman Ozdemir](https://hashnode.com/@osmanozdemir1)

[Jun 11, 2023](https://hashnode.com/posts/learning-how-to-unit-test-a-smart-contract-with-hardhat/63c3215fcb10fa4b35879a40/comment/648074f6837566372d40796b#reply-64865ca325cdda73520167c1)

Thank you for the comment, I'm glad it helped you :)
