Testing 

React.js

© Yariv Gilad

React.js

What kind of Tools do we need?

* Testing frameworks
     Task runners to run the tests

* Assertion libraries

    a language to describe should our test will pass or not​

* Utilities

    DOM & user interaction simulations, lifecycle events etc...

© Yariv Gilad

React.js

Testing frameworks

* Mocha     most popular, big ecosystem

* Jasmine   similar to mocha, less popular

* Jest          by Facebook, a wrapper around Jasmine

* Ava          new, ES6 built in, experimental, intersting

* Tape        lean, tiny, simple & minimal configuration

© Yariv Gilad

React.js

Assertion libraries

* Should.js 

* expect.js          

* expect-jsx          

© Yariv Gilad

React.js

Utilities - helper libraries

* Enzyme       

© Yariv Gilad

Testing React.js

By Yariv Gilad

Testing React.js

  • 1,481