CapceleaCristian / ReactPhoneStore

Phone Store using ReactJS
0 stars 0 forks source link

Add tests #12

Open strdr4605 opened 4 years ago

strdr4605 commented 4 years ago

Every software needs unit/e2e tests. https://keyholesoftware.com/2014/03/17/the-importance-of-unit-testing/ https://www.excella.com/insights/why-is-unit-testing-important

Another interesting topic is TDD.

To test react app there are several tools https://reactjs.org/docs/testing.html jest - JavaScript Testing Framework react-testing-library - Tool for testing DOM elements like React components and interaction with them.

Tutorials: https://www.youtube.com/watch?v=JKOwJUM4_RM https://www.youtube.com/watch?v=r9HdJ8P6GQI https://redux.js.org/recipes/writing-tests