# Unit Testing Homey Apps

**URL:** https://community.homey.app/t/unit-testing-homey-apps/108786
**Category:** Developers
**Created:** [April 24, 2024, 11:28am UTC](https://community.homey.app/t/unit-testing-homey-apps/108786 "2024-04-24T11:28:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![julianao](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/julianao/32/79652_2.png) [@julianao](https://community.homey.app/u/julianao)
#### Post date: [April 24, 2024, 11:28am UTC](https://community.homey.app/t/unit-testing-homey-apps/108786/1 "2024-04-24T11:28:22Z")

</div>

Hi!

I’m looking for advice on the best tools and practices for unit testing Homey apps, particularly the `Device.ts` and `Driver.ts` files. Does anyone have recommendations for libraries or methods that work well for testing these components? Also, how do you handle mocking Homey-specific objects and methods?

Thanks!

---

<div class="post-metadata">

### Author: ![bizarrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bizarrix/32/80641_2.png) [@bizarrix](https://community.homey.app/u/bizarrix)
#### Post date: [October 20, 2024, 8:55pm UTC](https://community.homey.app/t/unit-testing-homey-apps/108786/2 "2024-10-20T20:55:45Z")

</div>

I use the jest framework to unit-test my homeyscripts, and I’m currently looking to adapt it for my homey app.
