DEV Community

Discussion on: Why You Should be Writing Your Own React Hooks

Collapse
 
theodesp profile image
Theofanis Despoudis

The only thing thats left is how to verify it with tests that it works. As it is, it will not pass a code review sadly.

Collapse
 
httpjunkie profile image
Eric Bishard

In order to cover testing, why don't we just take one example and test it thoroughly. Would make for Ann engaging second article!

Collapse
 
namick profile image
nathan amick
Thread Thread
 
theodesp profile image
Theofanis Despoudis

Epic!

Collapse
 
namick profile image
nathan amick

Indeed, you are correct good sir. I shall endeavor to improve my TDB (test driven blogging) skills. ;-)

But seriously, you bring up a great point. If learners only read about writing tests in blog articles about testing, it gives credence to the idea that testing is just one additional and possibly optional chore rather than an integral and vital part of the development process.