when we write react test , we need to put conditions for expected output. we assert for expected output with methods. jest dom library provide us all assertion methods . we use those methods in tests.
link for jest-dom matchers
https://github.com/testing-library/je...