The main lesson is quite simple: if you can write the test to be uncheatable, ChatGPT can write the code for it.