pokerogue/test/test-utils/helpers
Bertie690 1691951c87
[Test] Added Map key matcher; enforced strong typing on matchers (#6561)
* Added `toHaveKey` matcher + fixed imports

* Broke up the test matchers into multiple smaller interfaces

* Added restricted typing on matchers

Now we can't call `expect(game).toHaveFullHp()`!!!!!

* Updated comment

* Renamed `toEqualArrayUnsorted` into `toEqualUnsorted`

* Moved comment at top of file

* Fix `@module` doc comment

* Remove extra space

* Fix typo

* Fixed key ssue in matchers

* Update to-have-key.ts

* Update test/@types/vitest.d.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Fixed missing braces inside comment

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-20 17:24:27 -05:00
..
challenge-mode-helper.ts [Dev] Added egg move parse script & script type checking (#6116) 2025-09-07 11:35:52 -07:00
classic-mode-helper.ts [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
daily-mode-helper.ts [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
field-helper.ts [Move] Trick Room now reverses itself when added twice in a row (#6314) 2025-08-20 20:22:52 -05:00
game-manager-helper.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
modifiers-helper.ts [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
move-helper.ts [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
overrides-helper.ts [Test] Added matcher to check message contents; added tests for Splash, Celebrate, Laser Focus (#6299) 2025-09-10 13:40:21 -05:00
reload-helper.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
settings-helper.ts [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00