React Component Testing Guide: Jest and RTLby@jaydee
1,553 reads

React Component Testing Guide: Jest and RTL

March 14th 2021
7 min
by @jaydee 1,553 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

React component testing guide: Jest and RTL. The focus should be on replicating how the user would interact with the React component. The team at React tests React; therefore, there is no need for you to test React’s functionality such as state, state, etc. Instead of testing implementation (e.g. was/called x number of times) Jest-Dom is not required but makes writing tests much easier because it will extend Jest matchers that let you test values in different ways.

Company Mentioned

Mention Thumbnail
featured image - React Component Testing Guide: Jest and RTL
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa