pokerogue/test
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
..
@types [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
abilities [Bug] Apply Supreme Overlord only once on summon (#6575) 2025-09-19 23:08:02 -05:00
achievements Release v1.10.0 to beta (#6321) 2025-08-22 19:13:37 -05:00
ai [Tests][Bug][Beta] Fix ditto bug and add unit tests (#6559) 2025-09-15 23:26:57 -05:00
arena [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
battle [Refactor] Remove null from PhaseManager.currentPhase signature 2025-09-05 09:28:35 -07:00
battler-tags [Refactor] getPokemonById returns undefined instead of null 2025-09-12 22:19:48 -07:00
challenges [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
data [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
eggs [Refactor] Remove isNullOrUndefined in favor of loose check against null (#6549) 2025-09-12 14:53:27 -05:00
field [Balance][Challenge] Block master ball catching final boss in challenges (#6273) 2025-08-20 19:24:55 -04:00
inputs [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
items [Test] Updated more uses of game.scene.getEnemyField and game.scene.getPlayerField to use updated test utils (#6524) 2025-09-18 09:36:08 -05:00
moves [Test] Updated more uses of game.scene.getEnemyField and game.scene.getPlayerField to use updated test utils (#6524) 2025-09-18 09:36:08 -05:00
mystery-encounter [Refactor] Remove isNullOrUndefined in favor of loose check against null (#6549) 2025-09-12 14:53:27 -05:00
phases [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
plugins/api [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
setting-menu [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
setup [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
sprites [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
status-effects [Bug] Fix status effects overwriting each other (#6392) 2025-08-24 12:51:16 -05:00
system [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
test-utils [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
types [Test] Port over + augment remaining test matchers from pkty (#6159) 2025-08-02 15:35:06 -07:00
ui [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
utils [Tests] Cleanup getCookie and add many unit tests (#6562) 2025-09-18 12:52:15 +00:00
account.test.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
battle-scene.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
boss-pokemon.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
daily-mode.test.ts [Misc] Simplifying imports of UI files (#6542) 2025-09-11 00:30:17 -07:00
endless-boss.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
enemy-command.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
escape-calculations.test.ts [Test] Updated more uses of game.scene.getEnemyField and game.scene.getPlayerField to use updated test utils (#6524) 2025-09-18 09:36:08 -05:00
evolution.test.ts [Hotfix] Fix tyrogue evo (#6414) 2025-08-26 06:57:11 +00:00
final-boss.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
game-mode.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
internals.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
misc.test.ts [Misc] Move asset initialization from preload to launchBattle 2025-08-02 14:29:35 -07:00
reload.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
utils.test.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00