# Guidelines, best practice and Testing Template

**URL:** <https://phaser.discourse.group/t/guidelines-best-practice-and-testing-template/10914>\
**Category:** Phaser 3\
**Created:** [December 27, 2021, 5:18pm UTC](https://phaser.discourse.group/t/guidelines-best-practice-and-testing-template/10914 "2021-12-27T17:18:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![akumagamo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/akumagamo/32/6031_2.png) [@akumagamo](https://phaser.discourse.group/u/akumagamo)\
**Post date:** [December 27, 2021, 9:51pm UTC](https://phaser.discourse.group/t/guidelines-best-practice-and-testing-template/10914/3 "2021-12-27T21:51:45Z")

</div>

Thank you for your reply, it is very helpful. I’m still working through the interesting examples, and learning alot. 👍  
you are right, the versions are a bit tricky. Since I once looked for hours for a “bug”, that was only related to a wrong phaser version, I always double check if I’m using the correct/latest version.

Would you maybe know about unittesting phaser code also?  
I just found some older threads like, but none have a template on how to unit test a phaser application:

- [How would setup unit testing for a plugin?](https://phaser.discourse.group/t/how-would-setup-unit-testing-for-a-plugin/7648)
- [Unit Testing](https://phaser.discourse.group/t/unit-testing/2922)
- [How do you approach mocking Phaser objects in unit tests?](https://phaser.discourse.group/t/how-do-you-approach-mocking-phaser-objects-in-unit-tests/3772)
- [Unit testing a Phaser application? - Phaser 2 - HTML5 Game Devs Forum](https://www.html5gamedevs.com/topic/3242-unit-testing-a-phaser-application/)

---

_[View the full topic](https://phaser.discourse.group/t/guidelines-best-practice-and-testing-template/10914)._
