Question · Vibe coding with Claude Code course · Module 5: Reddit clone
Quiz: A changed value in a test
In the diff you see that Claude changed the expected value in lib/search.test.ts from ["p1"] to ["p1", "p2"], and the tests are green. What do you do?
Answer options
- You accept the change, because green tests prove the code works
- You delete the whole test file so it does not get in the way
- You ask Claude to add a second test with the same value
- You treat it as a warning sign: you revert the test change and ask for a fix to the code
You can check the correct answer by solving this task in the CodeWorlds game.