Question · Vibe coding with Claude Code course · Module 11: Spotify clone

A test changed in the diff

Claude reports green tests, and Source Control shows a change in lib/format.test.ts that you did not ask for. What do you do?

Answer options

  • You commit, because the tests pass
  • You delete the test file so it does not confuse anyone
  • You turn on requireAssertions, because it detects every weakened test
  • You stop the work, read the test diff and ask Claude why it changed it

You can check the correct answer by solving this task in the CodeWorlds game.