# Add Tests tab to function nodes

**URL:** <https://discourse.nodered.org/t/add-tests-tab-to-function-nodes/99516>\
**Category:** Feature Requests\
**Created:** [27 October 2025 13:58 UTC](https://discourse.nodered.org/t/add-tests-tab-to-function-nodes/99516 "2025-10-27T13:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [27 October 2025 16:42 UTC](https://discourse.nodered.org/t/add-tests-tab-to-function-nodes/99516/4 "2025-10-27T16:42:28Z")

</div>

> [@AllanOricil](#):
>
> - jsonata could be used to bind env variables, but I would prefer writting tests with js if I ever need to inject env context in my tests. [OPTIONAL]

I like the idea that only "input - output" pairs are defined, no logic, no complexity. Allowing JSONata - even though it provides flexibility, the extra complexity (understanding tests if one isn't so firm on JSONata produces complexity) is a non-niceness!

Strangely I already suggested something similar --\> [Visual Unit Tests](https://discourse.nodered.org/t/visual-unit-tests/80478)

---

_[View the full topic](https://discourse.nodered.org/t/add-tests-tab-to-function-nodes/99516)._
