Best practices for TDD for React JS development
notes: react structure / styles could be better but this project is mostly focused on developing functionalities in best possible Test driven way
- Integrated Jest, Enzyme.
- Add shallow and snapshot test
- Click simulation, dom, state and props testing.
- Scenario and Specification based BDD (Behaviour Driven Development). Refactor test to remove test polluiton.
- Mocking a callback function using jest.fn()
- Improve test coverage. Ignore setup files from test coverage.
- Extract util functions in a separate file and add test cases