zigbee2mqtt-frontend icon indicating copy to clipboard operation
zigbee2mqtt-frontend copied to clipboard

Code testing

Open krzysztof-kwitt opened this issue 1 year ago • 1 comments

Hello,

I noticed that the code currently has no tests, which makes development difficult. I know that writing tests and maintaining them is an additional effort, but I think that in the long run it will allow us to add new changes faster.

What do you think to add to start working on them?,This requires that we agree on the approach and what tools we want to use to do this.

What do you think about start testing individual components using @testing-library/react and jest? I think this is common setup in the React world.

krzysztof-kwitt avatar Jan 24 '24 13:01 krzysztof-kwitt

Hi, @krzysztof-kwitt ! I'm totally into adding unit testing! You're more than welcome to contribute any improvements into this project

nurikk avatar Jan 25 '24 11:01 nurikk