Testing Track • Intermediate • 4 mins review
Test: Add coverage for TaxCalculator calculations
Added unit tests for the complex calculation logic in TaxCalculator to ensure we don't introduce regressions.
Scenario Goal & Context
Goal: Write unit tests that verify the mathematical correctness of the calculate() method.
Background: The TaxCalculator has complex math logic that has caused bugs in the past. We need solid test coverage.
Changed Files (2)
- src/services/TaxCalculator.ts +0 -0
- test/services/TaxCalculator.test.ts +18 -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