Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Quiz: The Markdown fence guard

Why does generate-tests.sh look in the new test file for a line that starts with three Markdown fence characters?

Answer options

  • Vitest requires the test file to start with a fence
  • Markdown fences around the code make the file stop being TypeScript, so not a single test runs
  • grep removes the fences from the file before you run the tests
  • Without this check the script would overwrite existing tests

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