Unit Test with Code Coverage

I have managed to install mocha and made some unit tests.

I want to check the coverage when running my tests. Is it possible to do with nyc (istanbul) for example

I have tried but only get 0% coverage all the time.

Hi @emanuel - welcome to the forum.

Can you explain a bit more about what you're trying to do and what you have done already? What are you unit testing exactly? A Node-RED flow? a Node? something else?

nyc is a tool for gathering code coverage stats - there are lots of guides for how to use it available online. Without more details about what you have done, its hard to know what to suggest.