paint-brush
React Component Testing Guide: Jest and RTLby@jaydee
1,846 reads
1,846 reads

React Component Testing Guide: Jest and RTL

by JDLT7mMarch 14th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
JDLT HackerNoon profile picture
JDLT

JDLT

@jaydee

JDLT provide custom software and managed IT services

L O A D I N G
. . . comments & more!

About Author

JDLT HackerNoon profile picture
JDLT@jaydee
JDLT provide custom software and managed IT services

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here