Re:Porting a React Front End to TypeScript
by joelbluminator on Tuesday April 28, 2020 @05:09AM
(#23005139)
I don't see tests as you describe in dynamic languages much. E.G this is how you would test Rails controllers https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/cont... . I don't think its that different than java world.
You don't waste time writing tests that simply check if all the arguments received the right type. This is taken care of by the type checker.
Besides, the biggest benefit of types is readability.