gis-ops / valhalla-app

This is the demo web app running on https://valhalla.openstreetmap.de
https://valhalla.openstreetmap.de
MIT License
163 stars 90 forks source link

add unit test cases for every react component in Jest #72

Closed deepchauhan closed 1 year ago

deepchauhan commented 1 year ago

I would like to write unit test cases for the react components in Jest, and achieve a good code coverage. With unit testing, we can have more control over their individual code block quality before integrating different components. Also, it is easier to identify and rectify mistakes or defects at the code level.

nilsnolde commented 1 year ago

You’re absolutely right! But: we won’t be able to maintain unit tests in the long run. #58 is good enough for our purposes.