halkeye’s avatarhalkeye’s Twitter Archive—№ 18,933

  1. …in reply to @OhKPond
    @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
    1. …in reply to @halkeye
      @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