---
title: "Comment by Arjun Dangi on \"React Unit Testing\" | Hashnode"
description: "Thanks for such an amazing explanation. Can you add one more test over here for testing navigation between pages? I have a button and onClick my route should ch"
url: "https://hashnode.com/posts/react-unit-testing/6470595ca4c18742c1e7f981/comment/66371b16565cfc9d3fc3e58c"
---

[Discussion](https://hashnode.com/posts/react-unit-testing/6470595ca4c18742c1e7f981)

Comment [React Unit Testing](https://hashnode.com/posts/react-unit-testing/6470595ca4c18742c1e7f981)

[Arjun Dangi](https://hashnode.com/@arjun001)

[May 5, 2024](https://hashnode.com/posts/react-unit-testing/6470595ca4c18742c1e7f981/comment/66371b16565cfc9d3fc3e58c)

Thanks for such an amazing explanation. Can you add one more test over here for testing navigation between pages? I have a button and onClick my route should change.

onClick = ()=>{ navigate('/path') }
