DEV Community

Discussion on: What’s an unpopular software opinion you have?

Collapse
 
qm3ster profile image
Mihail Malo

Even as a TypeScript obsessive and advocate, I have to admit it does nothing to replace 99% of your tests.
I want the TypeScript hype to burn brighter than ever, it should definitely be the only/default way to write JavaScript by hand, but please test your code.

You should aim for full coverage of module entry points by integration tests.
You should aim for a separate full coverage of implementation by unit tests.
Use Stryker.
Cast to any to shove invalid data into the module at the boundary.