pokerogue/test/test-utils/matchers
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
..
to-be-at-phase.ts [Refactor] Remove null from PhaseManager.currentPhase signature 2025-09-05 09:28:35 -07:00
to-equal-unsorted.ts [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
to-have-ability-applied.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-arena-tag.ts [Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338) 2025-09-05 21:50:37 -05:00
to-have-battler-tag.ts [Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338) 2025-09-05 21:50:37 -05:00
to-have-effective-stat.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-fainted.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-full-hp.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-hp.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-key.ts [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
to-have-positional-tag.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-shown-message.ts [Test] Added matcher to check message contents; added tests for Splash, Celebrate, Laser Focus (#6299) 2025-09-10 13:40:21 -05:00
to-have-stat-stage.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-status-effect.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-taken-damage.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-terrain.ts [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00
to-have-types.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-used-move.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-used-pp.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
to-have-weather.ts [Test] Added Map key matcher; enforced strong typing on matchers (#6561) 2025-09-20 17:24:27 -05:00