- Using
create-react-app
, what do we need to set up for testing? - What components are worth to test in your development?
- Can you apply TDD once you already created components?
NOTE: Apply TDD as much as you can.
- Find any sub-routine, extract that logic into a separate file and test it out.
- Run test coverage and save results into a .txt file at ./ - root level. Can you make the total coverage to be above of 60%?
- Meaningful test cases were implemented for components and sub-routines logic.
- All the test cases were successful.
- Test coverage is above 60%.
Nothing much since it already comes with Jest ready to start testing.
In my opinion, the ones that have key features or are more dynamic when using the app, you need to keep in mind that you need to test
that all renders properly and test the props and latest on those components
That depends on the perspective of each developer, in my opinion, yes, you can start doing TDD on code that was already written but is always good practice to do it starting the development process