How to stop writing bad nodes using the nrg cli and Vitest

I would like to share with you an example where I demonstrate how you can write tests for your nodes using Vitest

obs: node-red-node-test-helper is still locked to this commit because my changes to enable vitest were not released yet

obs: unit tests are still being written

obs: i'm also trying to enable e2e testing using playwright with multiple browsers. You can use npm run test:e2e but it wont test anything useful yet. At least the configuration is fine.

1 Like

You can ask questions. Dont be shy