pokerogue/test/testUtils
NightKev d5f7665b15
[Test] Update test utils (#5848)
* [Test] Add/update test utils

- Add `FieldHelper` which has methods to mock a pokemon's ability
or force a pokemon to be Terastallized

- Add `MoveHelper#use` which can be used to remove the need
for setting pokemon move overrides by modifying the
moveset of the pokemon

- Add `MoveHelper#selectEnemyMove` to make an enemy pokemon
select a specific move

- Add `MoveHelper#forceEnemyMove` which modifies
the pokemon's moveset and then uses `selectEnemyMove`

- Fix `GameManager#toNextTurn` to work correctly in double battles

- Add `GameManager#toEndOfTurn` which advances to the end of the turn

* Update some tests

- Disable broken Good As Gold test
and add `.edgeCase` to Good As Gold

- Fix Powder test

- Update some tests to demonstrate new methods
2025-05-30 12:24:05 -07:00
..
helpers [Test] Update test utils (#5848) 2025-05-30 12:24:05 -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 [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
gameManagerUtils.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00: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 [Tests][UI/UX] Add automated tests for the pokedex (#5637) 2025-04-23 18:10:01 +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