Commit Graph

4 Commits

Author SHA1 Message Date
ahmadalaa67984
51adedafa7 refactor: restructure GildedRose and fix update order
- Added ItemType enum for clearer item categorization
- Split logic into smaller helper methods for readability
- Updated sellIn decrement to occur before quality update
  (matches original Gilded Rose behavior and fixes approval test)
- Improved maintainability, clarity, and type safety
2025-10-15 21:23:42 +03:00
Anthony Rey
b0f4a15245 Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
Tomas Novella
939afa9822
Fix compile error in TS
Without a type annotation, TS expects the argument in the ctor to be a never[], hence "npm test" fails to even start
2018-12-09 09:40:49 +01:00
Paulo Clavijo Esteban
10346b66c8 Added GildedRose for TypeScript 2017-06-30 17:32:04 +01:00