3 ms·
How the hell do you test the damn things?
by regularfry 8y ago
How the hell do you test the damn things?
- coldtea 8y agoLike you'd test any other component? https://reactjs.org/docs/hooks-faq.html#how-to-test-components-that-use-hooks https://reactjs.org/docs/hooks-faq.html#how-to-test-componen... What exactly looks difficult about testing them? Existing components already carry state and use lifecycle methods...
- torartc 8y agoDon't test implementation details.