- 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%.
Using create-react-app, what do we need to set up for testing?
2.Create a file with .test.js extension.
What components are worth to test in your development?
For now, each component we have created for our home page and its child components.
Can you apply TDD once you already created components?
Sure, we can make changes if we do not have a successful test for our components and test it again.