Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Ordering: The lines of generate-tests.sh

Arrange the loop lines from generate-tests.sh from top to bottom:

Items to put in order

  • if [ -f "$TEST_FILE" ]; then continue; fi
  • done
  • for FILE in $(find lib -name "*.ts" ! -name "*.test.ts"); do
  • claude -p "Write Vitest tests for @$FILE." > "$TEST_FILE.tmp" || continue
  • TEST_FILE="${FILE%.ts}.test.ts"

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