Test it with real data, not the happy path.
The feature worked perfectly — on the one example I tested it with. A user named John, one item in the list, everything filled in, nothing missing. I shipped it feeling clever. Then a real user opened it with an empty list, and the page crashed. Another one typed a name with an apostrophe, and the save failed. A third one pasted a paragraph where I expected a word, and the whole layout broke. My test had been a fairy tale: one perfect user, doing the one perfect thing, in the one perfect order. Real users are not like that, and the model will not warn you — it tests the happy path too, because the happy path is the only path in your prompt.
The model builds for the data you show it. If you show it one clean example, it builds for one clean example, and it assumes the rest of the world looks the same. It assumes the list is never empty. It assumes every field is filled in. It assumes the text is short and the number is positive and the user is logged in. Those assumptions are invisible in the code it writes — until a real user trips over one of them at the worst possible moment.
Now I test with the ugly data first, before I call anything done. An empty list. A missing field. A very long name. A zero where a number should be. The wrong type entirely. Five minutes of ugly tests catches the bugs that a week of perfect tests never will — and when I find one, I put the ugly case in the prompt itself: "This must work when the list is empty." Then the model builds for the real world, not the demo.
The happy path is the demo. The ugly data is the product. Test the ugly data, and the product stops breaking on the first real person who touches it.