---
title: "Comment by Hrushi M on \"How to Confidently Write Unit Tests using React Testing Library\" | Hashnode"
description: "Good one! You could also add how to test when external modules are imported and used in a component. Particularly when and how to mock certain modules or functi"
url: "https://hashnode.com/posts/how-to-confidently-write-unit-tests-using-react-testing-library/6389933cf2da0b1628a2717e/comment/638aff56afa1e687fea3b5d8"
---

[Discussion](https://hashnode.com/posts/how-to-confidently-write-unit-tests-using-react-testing-library/6389933cf2da0b1628a2717e)

Comment [How to Confidently Write Unit Tests using React Testing Library](https://hashnode.com/posts/how-to-confidently-write-unit-tests-using-react-testing-library/6389933cf2da0b1628a2717e)

[Hrushi M](https://hashnode.com/@superflows)

[Dec 3, 2022](https://hashnode.com/posts/how-to-confidently-write-unit-tests-using-react-testing-library/6389933cf2da0b1628a2717e/comment/638aff56afa1e687fea3b5d8)

Good one! You could also add how to test when external modules are imported and used in a component. Particularly when and how to mock certain modules or functions. Something on code coverage as well. Cheers!

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Dec 5, 2022](https://hashnode.com/posts/how-to-confidently-write-unit-tests-using-react-testing-library/6389933cf2da0b1628a2717e/comment/638aff56afa1e687fea3b5d8#reply-638d85e44a96bb8fda43a3c6)

[Hrushi M](https://hashnode.com/@superflows) That's included [in the course](https://online-elearning-platform.netlify.app/)
