node-red-node-test-helper icon indicating copy to clipboard operation
node-red-node-test-helper copied to clipboard

A test framework for Node-RED nodes

Results 37 node-red-node-test-helper issues
Sort by recently updated
recently updated
newest added

Dear all, I'm trying to load a node based on new node-red dashboard api addWidget but i have an error when loading TypeError: RED.require is not a function in my...

this still doesn't work. see https://github.com/node-red/node-red-node-test-helper/issues/25

I am unable to get failed unit test assertions to output the actual error condition. Instead, what happens is that the test times out with no hint of the actual...

Hi there, I am basically writing a network adapter between two http APIs, and I want to write some integration tests. For now I have a very simple flow with...

If you call `unload()` but haven't called `load(...)` before, there will be an unhandled exception caused by `this._logSpy.restore()` (index.js:257), because `this._logSpy` is undefined. This might be a rare use-case but...

In the README, there is a section that is titled "Receiving messages from nodes". This talks about the function called `receive` which can be called on a node object to...

I am very happy that it is now possible to initialise the helper with settings. However I found out that calling `helper.settings(userSettings)` more than once with the same instance of...

When testing nodes that use a config node that implements `RED.httpAdmin.get(…`, the tests fail. When doing `helper.getNode("node1")` It fails with this error: ``` TypeError: Cannot read property ‘get’ of null...

Tests should run on CI, e.g. Travis-CI.

At the moment it is impossible to test a flow which has a function node, which loads a module with a call to `global.get()`. (See the [documentation](https://nodered.org/docs/writing-functions#loading-additional-modules) on loading modules...