When writing unit tests for components I usually ask myself "How would a typical user interact with this component?". This helps me come up with a couple of test cases quickly. Remember to not overdo unit tests, though. They are not a perfect solution and there's a big chance you'll be writing useless tests that will only verify if your mocks are working correctly.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
When writing unit tests for components I usually ask myself "How would a typical user interact with this component?". This helps me come up with a couple of test cases quickly. Remember to not overdo unit tests, though. They are not a perfect solution and there's a big chance you'll be writing useless tests that will only verify if your mocks are working correctly.