# How to add functionGlobalContext to node-red-node-test-helper?

**URL:** <https://discourse.nodered.org/t/how-to-add-functionglobalcontext-to-node-red-node-test-helper/3122>\
**Category:** General\
**Created:** [13 September 2018 14:50 UTC](https://discourse.nodered.org/t/how-to-add-functionglobalcontext-to-node-red-node-test-helper/3122 "2018-09-13T14:50:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdlans](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cdlans/32/2568_2.png) [@cdlans](https://discourse.nodered.org/u/cdlans)\
**Post date:** [13 September 2018 14:50 UTC](https://discourse.nodered.org/t/how-to-add-functionglobalcontext-to-node-red-node-test-helper/3122/1 "2018-09-13T14:50:50Z")

</div>

I am trying to write tests for my flow. My flow uses a function node, which uses a `global.get()` call to load a module which was specified in the `settings.functionGlobalContext`.

At the moment my test fails because with the node-red-node-test-helper, `global.get()` returns `undefined`. Is there a way to specify the `functionGlobalContext` for the node-red-node-test-helper?
