How do I make expect(stuff).toHaveTextContent(text)
pass only when the text matches exactly?
.toHaveTextContent("1")
counts as a match if the text I'm testing is "100"
You can do the ff instead:
expect(stuff.textContent).toBe('100')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With