Re:I love React Hooks
by underwater on Wednesday February 20, 2019 @02:29AM
(#19206283)
Are you using Storybook or a similar system? I've got a lot of value in defining my application in decoupled components when I can verify the implementation of each part in isolation.
[ Parent
| on HN ]
Re:I love React Hooks
by Azeralthefallen on Wednesday February 20, 2019 @02:54AM
(#19206368)
We write tests to verify if things are working correctly using Cypress + Mocha. We have simple unit tests for validating basic functionality and extensive integration tests. We typically have a set of tests per feature.
The problem i have noticed is that people say "well it works in isolation", but on integration with other components it doesn't work properly. Unfortunately this is a huge problem i find, and frankly the idea of numerous shared hooks and ensuring they are side affect free is very painful.