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

- [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) ## Proposed changes Currently `helper.request()` supports testing editor/admin URL, but it...

We found some tests were failing randomly under certain conditions, but sometimes they worked. Upon deeper analysis I found the NodeTestHelper.load() function awaits the loadFlows() promise to be fulfilled, but...

Alternative fix to #73 - rather than stub it, expose the real internal plugin api.

I am trying to run unit tests like described [here](https://nodered.org/docs/creating-nodes/first-node#unit-testing), but it seems to me that the helper is not correctly initialized. So if I try to load my node,...

If the flow contains several 'catch' nodes (which are loaded by test-helper automatically as well as 'status' and 'complete' nodes which possibly will result in the same error), the tests...

https://github.com/npm/node-semver/blob/main/CHANGELOG.md https://github.com/advisories/GHSA-c2qf-rxjj-qqgw ```shell $ npm audit # npm audit report semver 7.0.0 - 7.5.1 Severity: moderate semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw fix available via `npm...

## Problem Summary I'm trying to write tests for the new Dashboard 2.0. In doing so, I have a `passthru` option, which when disabled, does _not_ send a message on...

Update readme for being consistent in startServer / stopServer calls. What the Readme currently states is OK with the start and stop definitions, but it is not consistent. If a...

I can't understand relationship of config node and test. I need a method of put a some parameter on config node and test.

I have tried to create test cases for custom nodes generated from a subflow but the test using helper module fails. In this issue, I wrote the example case of...