node-red / node-red-node-test-helper

A test framework for Node-RED nodes
Apache License 2.0
57 stars 40 forks source link

Fix async module loading #65

Closed knolleary closed 1 year ago

knolleary commented 1 year ago

The fix introduced in #63 introduced a timing window where tests could be run against flows from the previous test.

This is because loadFlows was being called with the result of Promise.all(...) implicitly passed as the first arg. This was incorrectly getting it to start the flows prematurely.