Advertisement

Why You Should Use React-Testing-Framework

Why You Should Use React-Testing-Framework In this video, I discuss why you should consider using react-testing-framework:



React-testing-library is an alternative testing library you can use to react. Most people who write unit tests with react will have heard of Enyzme. One of the issues of writing tests with enzymes is that you tend to write very brittle tests. When you write a test in Enzyme most of the time you will be writing a test that will be coupled to your code. React-testing-library's aim is to test behavior rather than code.

I'm not the only person who likes this framework, the Facebook React team also recommends using the react-testing-library to simulate user behavior in your tests. The library is fairly simple to get up and running with. It contains a complete set of React DOM testing utilities aimed to test actual user actions.

Sound interesting? Find out more

React-Testing-Framework

Post a Comment

0 Comments