Use Screen.Logtestingplaygroundurl() To Create Your Queries In React Testing Library

TopicSource
๐Ÿงฉ React[React Testing Library and Jest: The Complete Guide

screen.logTestingPlaygroundUrl() creates an interactive playground of the current markup you are rendering and gives you perfect queries to get every element.


  1. Set up Jest environment