Testing Track • Beginner • 3 mins review

Test: Add list sorting coverage without mutating fixtures

Adds a tiny unit test around list sorting so the shared helper can be refactored safely.

Scenario Goal & Context

Goal: Verify that sorting returns a correctly ordered result without leaking changes into shared fixture data.

Background: The list sorting helper is reused in several screens and the team wants a minimal regression test.

Changed Files (1)

  • test/utils/sortLabels.test.ts +7 -0

Ready to practice reviewing this PR?

Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.

Start Review Session