Closed cenobitedk closed 1 year ago
Yeah I think that's a great idea. Especially the consistency of the hook and static availability would be nice to ensure.
Cool. Any preference in what tool to use? Jasmin seem very lightweight and still pretty fast. Do we need specific react test?
I think we should test React render specific stuff like if it re-renders correctly with the hook. I like jest with react testing library, as it's the most common in the react community. But I'm good with Jasmin as well if you prefer that. 🙌
I have used jasmine, mainly because I read this article where it performs very well. https://medium.com/dailyjs/javascript-test-runners-benchmark-3a78d4117b4
Maybe I'm just opinionated but jest seem like the slow dinosaur. I could be very wrong.
Interesting, well just go with the one that excites you. After all, having tests is better than no tests :)
Should we add tests or what do you think @kasperpihl ?