DEV Community

Discussion on: Simplify repetitive Jest test cases with test.each

Collapse
 
eddsaura profile image
Jose E Saura

Hey I really liked this example.

Is there a way to make something similar but the difference would be in 1 test the element is in the document and the other test the element is NOT in the document.

I kinda have an idea but I think what I thought is too much abstraction and unnecesary.