# Cannot test context functions $flowContext or $globalContext

**URL:** <https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872>\
**Category:** General\
**Tags:** jsonata\
**Created:** [5 December 2025 15:43 UTC](https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872 "2025-12-05T15:43:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubnemo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dubnemo/32/38759_2.png) [@dubnemo](https://discourse.nodered.org/u/dubnemo)\
**Post date:** [5 December 2025 15:43 UTC](https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872/1 "2025-12-05T15:43:17Z")

</div>

Is this just a warning since the values are not accessible from the Test tab in the JSONata editor?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [5 December 2025 15:55 UTC](https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872/2 "2025-12-05T15:55:30Z")

</div>

@dubnemo yes, precisely that. The test tab in the editor doesn't have access to the actual context data, so those functions can't be used.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [5 December 2025 17:03 UTC](https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872/3 "2025-12-05T17:03:34Z")

</div>

To add, you can not test `$moment()` or the transform operator `head ~> | location | update [, delete] |` either.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 March 2026 17:04 UTC](https://discourse.nodered.org/t/cannot-test-context-functions-flowcontext-or-globalcontext/99872/4 "2026-03-05T17:04:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
