pokerogue/src
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
..
@types [Refactor] Refactor ability file part 1 (#5589) 2025-04-15 14:08:35 +00:00
configs/inputs [Bug] [UI/UX] Make , . / and \ Bindable Keys (#5707) 2025-04-26 01:34:57 +00:00
data [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
enums [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
events [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
field [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
global-vars [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
interfaces Revert "[Refactor] Move many interfaces and enums to their own file" (#5661) 2025-04-14 12:28:36 -04:00
modifier [Item] Add Deep Sea Scale & Deep Sea Tooth items (#5078) 2025-05-23 07:36:30 +00:00
phases Hotfix 1.9.5 to Beta 2025-05-27 23:57:16 -04:00
pipelines [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
plugins [Bug] Fix clear ignoring errors from server (#5722) 2025-04-29 23:55:42 -07:00
sprites [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
system [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
typings/phaser [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
ui [Bug] Fix improperly named sprite key for enemy boss' battle UI (#5888) 2025-05-30 02:11:53 +02:00
utils [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
account.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
battle-scene.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
battle.ts [Balance][Refactor] Move fixed boss waves enum to file, adjust GL templates (#5689) 2025-04-23 14:48:04 -05:00
constants.ts [Bug][Ability] Fix change move type abilities (#5665) 2025-05-01 22:41:57 -04:00
debug.js [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
game-mode.ts [Dev] Fixed biome override not working for Daily Mode (#5776) 2025-05-29 20:39:55 -07:00
global-event-manager.ts [Misc] AFD Event (#5596) 2025-03-31 15:11:01 -07:00
global-scene.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
inputs-controller.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
loading-scene.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
main.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
messages.ts [Ability] Implement Illusion (#3273) 2025-04-12 21:22:04 -04:00
overrides.ts [Dev] Fixed biome override not working for Daily Mode (#5776) 2025-05-29 20:39:55 -07:00
phase.ts [Refactor] Align ability display with mainline (#5267) 2025-03-16 02:51:02 +00:00
scene-base.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
starter-colors.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
starting-wave.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
timed-event-manager.ts [Misc] More Spring (#5759) 2025-05-03 12:59:55 -04:00
touch-controls.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
tutorial.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
ui-inputs.ts [Refactor][UI/UX] Cleanup battle-info ui code (#5696) 2025-05-28 17:29:03 +00:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00