pokerogue/test/moves
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
..
after_you.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
alluring_voice.test.ts [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
aromatherapy.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
assist.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
astonish.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
aurora_veil.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
autotomize.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
baddy_bad.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
baneful_bunker.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
baton_pass.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
beak_blast.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
beat_up.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
belly_drum.test.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
burning_jealousy.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
camouflage.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
ceaseless_edge.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
chilly_reception.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
chloroblast.test.ts [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
clangorous_soul.test.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
copycat.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
crafty_shield.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
defog.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
destiny_bond.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
diamond_storm.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
dig.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
disable.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
dive.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
doodle.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
double_team.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
dragon_cheer.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
dragon_rage.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
dragon_tail.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
dynamax_cannon.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
effectiveness.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
electrify.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
electro_shot.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
encore.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
endure.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
entrainment.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
fairy_lock.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
fake_out.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
false_swipe.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
fell_stinger.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
fillet_away.test.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
fissure.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
flame_burst.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
flower_shield.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
fly.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
focus_punch.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
follow_me.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
foresight.test.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
forests_curse.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
freeze_dry.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
freezy_frost.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
fusion_bolt.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
fusion_flare_bolt.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
fusion_flare.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
future_sight.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
gastro_acid.test.ts [Bug][Move] Allow gastro acid to suppress passives if main ability is unsuppressable (#5854) 2025-05-27 16:46:56 -05:00
geomancy.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
gigaton_hammer.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
glaive_rush.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
growth.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
grudge.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
guard_split.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
guard_swap.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
hard_press.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
haze.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
heal_bell.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
heal_block.test.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
heart_swap.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
hyper_beam.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
imprison.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
instruct.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
jaw_lock.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
lash_out.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
last_respects.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
last-resort.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
light_screen.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
lucky_chant.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
lunar_blessing.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
lunar_dance.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
magic_coat.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
magnet_rise.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
make_it_rain.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
mat_block.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
metal_burst.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
metronome.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
miracle_eye.test.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
mirror_move.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
mist.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
moongeist_beam.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
multi_target.test.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
nightmare.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
obstruct.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
octolock.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
order_up.test.ts [Move] [Beta] Undo Order Up Sheer Force change (#5750) 2025-05-02 20:32:59 -05:00
parting_shot.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
plasma_fists.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
pledge_moves.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
pollen_puff.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
powder.test.ts [Test] Update test utils (#5848) 2025-05-30 12:24:05 -07:00
power_shift.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
power_split.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
power_swap.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
power_trick.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
protect.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
psycho_shift.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
purify.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
quash.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
quick_guard.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
rage_fist.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
rage_powder.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
reflect_type.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
reflect.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
relic_song.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
retaliate.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
revival_blessing.test.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
role_play.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
rollout.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
roost.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
round.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
safeguard.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
scale_shot.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
secret_power.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
shed_tail.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
shell_side_arm.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
shell_trap.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
simple_beam.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
sketch.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
skill_swap.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
sleep_talk.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
solar_beam.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
sparkly_swirl.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
spectral_thief.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
speed_swap.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
spikes.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
spit_up.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
spotlight.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
steamroller.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
stockpile.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
struggle.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
substitute.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
swallow.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
synchronoise.test.ts [Bug] [Move] Synchronoise hitting Tera Type fix (#5779) 2025-05-20 23:12:54 +00:00
syrup_bomb.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
tackle.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
tail_whip.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
tailwind.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
tar_shot.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
taunt.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
telekinesis.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
tera_blast.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
tera_starstorm.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
thousand_arrows.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
throat_chop.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
thunder_wave.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
tidy_up.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
torment.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
toxic_spikes.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
toxic.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
transform.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
trick_or_treat.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
triple_arrows.test.ts [Misc] Move allMoves to data-lists.ts (#5860) 2025-05-21 20:18:24 -07:00
u_turn.test.ts [Bug] IVs of trainers were incorrectly using the battle seed (#5822) 2025-05-17 10:36:16 -05:00
upper_hand.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
whirlwind.test.ts [Bug]: Fix #5010: roar and whirlwind missing fail message when against a trainer (#5659) 2025-05-21 07:14:16 +00:00
wide_guard.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00
will_o_wisp.test.ts [Bug] Fix forced switch bugs in enemy partner trainer battles (#5644) 2025-04-18 09:35:46 +00:00