# Can I use node-red-node-test-helper for testing ui components?

**URL:** <https://discourse.nodered.org/t/can-i-use-node-red-node-test-helper-for-testing-ui-components/40101>\
**Category:** Dashboard\
**Created:** [31 January 2021 12:14 UTC](https://discourse.nodered.org/t/can-i-use-node-red-node-test-helper-for-testing-ui-components/40101 "2021-01-31T12:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergiuToporjinschi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sergiutoporjinschi/32/36263_2.png) [@SergiuToporjinschi](https://discourse.nodered.org/u/SergiuToporjinschi)\
**Post date:** [31 January 2021 12:14 UTC](https://discourse.nodered.org/t/can-i-use-node-red-node-test-helper-for-testing-ui-components/40101/1 "2021-01-31T12:14:59Z")

</div>

Hi,  
I've used node-red-node-test-helper for testing my nodes. And now I have a dashboard custom node that I want to test using node-red-node-test-helper and unfortunately throws exception when reaches RED.require("node-red-dashboard") because is not finding the dashboard. How can I start the server having also the dashboard installed before testing.  
I would not want to mock-up that call...  
is there a possibility to install that when calling helper.startServer(done); ?

---

<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:** [2 March 2021 12:15 UTC](https://discourse.nodered.org/t/can-i-use-node-red-node-test-helper-for-testing-ui-components/40101/2 "2021-03-02T12:15:37Z")

</div>

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