Test end to end before handing to client

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the collaboration category.

Last Updated: 2024-04-25

I was working on Project S with an intense deadline. During one commit, I inexplicably accidentally deleted a function:

bookAppointment(data, apiToken) {
   return postToApi(data, apiToken)
}

Because we had no budget for automated tests, this was not detected. Instead my client caught it at 1.30 am on a Friday night, probably fuming.

I should have manually tested these major flows before handing off to the client.