paint-brush
DOM Testing Library: Is it Worth a Try?by@drakulavich
271 reads

DOM Testing Library: Is it Worth a Try?

by Anton Yakutovich7mOctober 20th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Short answer: Yes. The testing library approach to query elements with simulated user events looks really promising. This way of testing the app naturally improves accessibility (ARIA attributes are the main source for selectors). The quick launch of the tests rocks. Local development with jest --watch is a real productivity booster. If you already have the testing library on your project and developers are actively using it, I recommend you reading the code and make a couple of tests to understand how it works. If you as a QA engineer want to bring testingclibrary to the project, it might be a challenge. You will have to understand internal parts, components and which APIs should be mocked. In that case, I would rather stick to e2e tests.

Company Mentioned

Mention Thumbnail
featured image - DOM Testing Library: Is it Worth a Try?
Anton Yakutovich HackerNoon profile picture
Anton Yakutovich

Anton Yakutovich

@drakulavich

SDET, Lead QA Engineer. I believe in engineering culture and the importance of fast feedback to the changes.

Learn More
LEARN MORE ABOUT @DRAKULAVICH'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Anton Yakutovich HackerNoon profile picture
Anton Yakutovich@drakulavich
SDET, Lead QA Engineer. I believe in engineering culture and the importance of fast feedback to the changes.

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
Polywork
Allella
Leftic