You Should Run Cleanup Code at the Start of Your Tests

I recently came across an integration test that demonstrates what I believe is an antipattern. This particular test was consistently failing at the start with a “Unique constraint violation” in the database when calling the createUser function.