pokerogue/test/testUtils/helpers
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
..
challengeModeHelper.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
classicModeHelper.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
dailyModeHelper.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
field-helper.ts [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
gameManagerHelper.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
modifiersHelper.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
moveHelper.ts [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
overridesHelper.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
reloadHelper.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
settingsHelper.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00