Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 625 Bytes

File metadata and controls

15 lines (11 loc) · 625 Bytes

React TDD - Basic

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

Changelog

  • 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