---
title: "Discussion on \"Testable code has few mocks\" | Hashnode"
description: "Discussion on \"Testable code has few mocks\". Unit testing should have few mocks. Using JavaScript, I show a few examples of how functional programming helps to write testable code"
url: "https://hashnode.com/posts/testable-code-has-few-mocks/64c60dab5a0f2b614f316360"
---

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

Discussion

# [Testable code has few mocks](https://blog.adrianstobbe.com/testable-code-has-few-mocks?utm_source=hashnode&utm_medium=feed)

Unit testing should have few mocks. Using JavaScript, I show a few examples of how functional programming helps to write testable code

Nov 24, 2021 · 6 min read · blog.adrianstobbe.com  
Read the article

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

## Written by

[Adrian Stobbe](https://hashnode.com/@elchead)

@elchead

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
