Hegwin.Me

疏影横斜水清浅,暗香浮动月黄昏。

测试React应用程序

Testing Strategies for React Applications

Main things:

  • mocha - Test Frame
  • chai - provides TDD/BDD syntax (should, expect ) for testing
  • enzyme - procides component renderer such as shallow and mount, and DOM manipulation and traversal
  • sinon - provides mocks and spies
< Back