pokerogue/test/testUtils
Sirz Benjie 1fc42b3231
[Misc] Add phase#is method to help reduce circular imports (#5868)
* Move phase types out of phase interceptor

* Create isXPhase method and add properties to each phase

* Replace instanceof phase with isXPhase

* Fix missing union types for phaseName

* Update doc comment in phase.ts

* Fix incomplete comment in encounter-phase

* Make phaseName as public and fix more uses

* Move phaseName property declaration before constructor in move anim phase

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

* Rename isXPhase to is

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-06 21:08:23 +00:00
..
helpers [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
mocks [Test] Add missing methods to many mocks (#5891) 2025-05-29 20:27:39 -07:00
saves [UI/UX] Caught battle forms are displayed correctly in Pokédex (#5697) 2025-05-01 02:17:21 +00:00
errorInterceptor.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
fakeMobile.html [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
gameManager.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
gameManagerUtils.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
gameWrapper.ts [Tests][UI/UX] Add automated tests for the pokedex (#5637) 2025-04-23 18:10:01 +00:00
inputsHandler.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
listenersManager.ts [Test] [Refactor] [GitHub] Enable no isolate for vitest (#5566) 2025-03-28 17:30:38 -04:00
phaseInterceptor.ts [Misc] Add phase#is method to help reduce circular imports (#5868) 2025-06-06 21:08:23 +00:00
testFileInitialization.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
testUtils.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
TextInterceptor.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00