|
|
|
|
|
by shados
2687 days ago
|
|
They're not necessary in JS either. You'd presumably have at least some tests in the form of "Give these input, get that output". By checking that output, you pretty much confirm its the right type at the same time. I've seen a lot of test suites that have stuff like: "given input A, test that result is defined. Given input A again, test that result is 1234". It's like, yo, if result is 1234, its obviously defined. There are edge cases, so yeah, the amount of tests you don't write in TS is > 0, but it's far and few in between. |
|