The speaker uses a test infrastructure that captures game states as screenshots and matches them against image snapshots. This helps verify that the game state is correct at each stage.