---
title: "Discussion on \"Testing your React app with mocks\" | Hashnode"
description: "Discussion on \"Testing your React app with mocks\". For your app, you need tests.\nTesting avoids regressions and makes your app safer and easier to debug. Writing tests isn’t easy for a lot of reasons. Few of them are the features of the browser or the external APIs. They’re not available during the e..."
url: "https://hashnode.com/posts/testing-your-react-app-with-mocks/631acebe00230a29830ddd47"
---

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

Discussion

# [Testing your React app with mocks](https://devoreur2code.hashnode.dev/testing-your-react-app-with-mocks?utm_source=hashnode&utm_medium=feed)

For your app, you need tests. Testing avoids regressions and makes your app safer and easier to debug. Writing tests isn’t easy for a lot of reasons. Few of them are the features of the browser or the external APIs. They’re not available during the e...

Sep 9, 2022 · 4 min read · devoreur2code.hashnode.dev  
Updated Apr 10, 2023  
Read the article

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

## Written by

[Fabien Schlegel](https://hashnode.com/@fabienschlegel)

@fabienschlegel · Belin Beliet, France

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

Web developer | Content Creator

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
