Good companies will allow time for documentation and testing[0], and great developers will make time for it whether it's officially there or not.
[0] Mediocre unit tests are as good or better than pristine API docs that are slightly out of date.
[0] Mediocre unit tests are as good or better than pristine API docs that are slightly out of date.
So in addition to having better continuity of institutional knowledge, there is a benefit to staying on longer (at least for me).