Is programming in TypeScript simply another excuse not to write test in JavaScript?

decker67

decker

Posted on January 4, 2023

Is programming in TypeScript simply another excuse not to write test in JavaScript?

I know TS and i know JS and I prefer JS over TS because of multiple reasons.

Reading posts where people tells us why it is a good idea to use TS ends with types makes programms more stable because the TS compiler helps to avoid errors at build time.

But this can even better be done with tests, I think.
Tests can describe behaviour and the structure of your JS and that includes the types.

If you add an attribute to an object, your tests should show the problem and so on.

💖 💪 🙅 🚩
decker67
decker

Posted on January 4, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related