-
@OhKPond Somewhere between the first 3. I test whats important to me. Its the cases I want to handle. That way people can also see how my function should be used. Private functions rarely get tests, unless its something complicated. With typescript I test even less
-
@OhKPond Unit testing is literally a small unit of testing. So a function, assuming a function does one thing. If your function does more than one thing (within reason) then you gotta see if it needs to be split up for readability