# Testing a MQTT node in a Node-RED flow using Mocha and node-red-node-test-helper node

**URL:** <https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358>\
**Category:** General\
**Created:** [5 July 2018 12:57 UTC](https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358 "2018-07-05T12:57:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pauldeng](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pauldeng/32/574_2.png) [@pauldeng](https://discourse.nodered.org/u/pauldeng)\
**Post date:** [30 May 2019 00:15 UTC](https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358/4 "2019-05-30T00:15:11Z")

</div>

Here is a [Node-red-node-test-helper Example](https://discourse.nodered.org/t/node-red-node-test-helper-example/11685) may be useful to anyone visits this thread.

---

_[View the full topic](https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358)._
