The type checker may as well be one big automated unit test.
For all the time a developer spends not writing out types, it then has to be made up in manually written unit tests.
For all the time a developer spends not writing out types, it then has to be made up in manually written unit tests.
However a unit test may simply inform you that you have something wrong with your program, whereas a type checker will (more often that not) show you exactly where the error is, and usually as you were typing it.
Reality is that unit tests and type checking both have their place even if there is overlap between the two. Type checkers can however remove the need for trivial and repetitive unit tests.