|
|
|
|
|
by motorest
335 days ago
|
|
> Even with typescript Claude will happily break basic business logic to make tests pass. It's my understanding that LLMs change the code to meet a goal, and if you prompt them with vague instructions such as "make tests pass" or "fix tests", LLMs in general apply the minimum necessary and sufficient changes to any code that allows their goal to be met. If you don't explicitly instruct them, they can't and won't tell apart project code from test code. So they will change your project code to make tests work. This is not a bug. Changing project code to make tests pass is a fundamental approach to refactoring projects, and the whole basis of TDD. If that's not what you want, you need to prompt them accordingly. |
|
It's not a bug if we're talking about a mischievous jinn granting wishes instead of a productivity tool.