Skip to content

hasanavi/react-tdd-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Best practices for TDD for React JS development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors