See below about basic design of ia-cloud Node-RED custom nodes. https://github.com/ia-cloud/Web-API-Specification-V2/blob/master/ia-cloud%20custom%20nodes.md
Install mocha.
npm i -g mocha
Execute test script
npm test
or
npm test:watch
See below about basic design of ia-cloud Node-RED custom nodes. https://github.com/ia-cloud/Web-API-Specification-V2/blob/master/ia-cloud%20custom%20nodes.md
Install mocha.
npm i -g mocha
Execute test script
npm test
or
npm test:watch