From c93358fb6d7afa138514c46809a9e641bb6233ec Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 18 Feb 2025 19:03:30 -0600 Subject: [PATCH] Move test folder --- eslint.config.js | 4 +- .../abilities/ability_duplication.test.ts | 0 .../abilities/ability_timing.test.ts | 0 {src/test => test}/abilities/analytic.test.ts | 0 .../abilities/arena_trap.test.ts | 0 .../abilities/aroma_veil.test.ts | 0 .../abilities/aura_break.test.ts | 0 {src/test => test}/abilities/battery.test.ts | 0 .../abilities/battle_bond.test.ts | 0 .../abilities/beast_boost.test.ts | 0 .../test => test}/abilities/commander.test.ts | 0 .../abilities/competitive.test.ts | 0 {src/test => test}/abilities/contrary.test.ts | 0 .../test => test}/abilities/corrosion.test.ts | 0 {src/test => test}/abilities/costar.test.ts | 0 {src/test => test}/abilities/dancer.test.ts | 0 {src/test => test}/abilities/defiant.test.ts | 0 .../abilities/desolate-land.test.ts | 0 {src/test => test}/abilities/disguise.test.ts | 0 {src/test => test}/abilities/dry_skin.test.ts | 0 .../abilities/early_bird.test.ts | 0 .../abilities/flash_fire.test.ts | 0 .../abilities/flower_gift.test.ts | 0 {src/test => test}/abilities/forecast.test.ts | 0 .../abilities/friend_guard.test.ts | 0 .../test => test}/abilities/galvanize.test.ts | 0 .../abilities/good_as_gold.test.ts | 0 .../abilities/gorilla_tactics.test.ts | 0 .../abilities/gulp_missile.test.ts | 0 .../test => test}/abilities/heatproof.test.ts | 0 .../abilities/honey_gather.test.ts | 0 {src/test => test}/abilities/hustle.test.ts | 0 .../abilities/hyper_cutter.test.ts | 0 {src/test => test}/abilities/ice_face.test.ts | 0 .../abilities/illuminate.test.ts | 0 {src/test => test}/abilities/imposter.test.ts | 2 +- .../abilities/infiltrator.test.ts | 0 .../abilities/intimidate.test.ts | 0 .../abilities/intrepid_sword.test.ts | 0 {src/test => test}/abilities/libero.test.ts | 0 .../abilities/magic_bounce.test.ts | 0 .../abilities/magic_guard.test.ts | 0 {src/test => test}/abilities/mimicry.test.ts | 0 .../abilities/mirror_armor.test.ts | 0 {src/test => test}/abilities/moody.test.ts | 0 {src/test => test}/abilities/moxie.test.ts | 0 .../abilities/mycelium_might.test.ts | 0 {src/test => test}/abilities/no_guard.test.ts | 0 .../abilities/parental_bond.test.ts | 0 .../abilities/pastel_veil.test.ts | 0 .../abilities/perish_body.test.ts | 0 .../abilities/power_construct.test.ts | 0 .../abilities/power_spot.test.ts | 0 {src/test => test}/abilities/protean.test.ts | 0 .../abilities/protosynthesis.test.ts | 0 .../abilities/quick_draw.test.ts | 0 .../test => test}/abilities/sand_spit.test.ts | 0 .../test => test}/abilities/sand_veil.test.ts | 0 .../abilities/sap_sipper.test.ts | 0 .../test => test}/abilities/schooling.test.ts | 0 .../abilities/screen_cleaner.test.ts | 0 .../abilities/seed_sower.test.ts | 0 .../abilities/serene_grace.test.ts | 0 .../abilities/sheer_force.test.ts | 0 .../abilities/shield_dust.test.ts | 0 .../abilities/shields_down.test.ts | 0 {src/test => test}/abilities/simple.test.ts | 0 .../abilities/speed_boost.test.ts | 0 {src/test => test}/abilities/stakeout.test.ts | 0 {src/test => test}/abilities/stall.test.ts | 0 .../abilities/steely_spirit.test.ts | 0 {src/test => test}/abilities/sturdy.test.ts | 0 .../abilities/supreme_overlord.test.ts | 0 .../abilities/sweet_veil.test.ts | 0 .../abilities/synchronize.test.ts | 0 .../abilities/tera_shell.test.ts | 0 {src/test => test}/abilities/unburden.test.ts | 0 .../abilities/unseen_fist.test.ts | 0 .../abilities/volt_absorb.test.ts | 0 {src/test => test}/abilities/wimp_out.test.ts | 2 +- .../abilities/wind_power.test.ts | 0 .../abilities/wind_rider.test.ts | 0 .../abilities/wonder_skin.test.ts | 0 {src/test => test}/abilities/zen_mode.test.ts | 0 .../abilities/zero_to_hero.test.ts | 0 {src/test => test}/account.test.ts | 2 +- .../achievements/achievement.test.ts | 2 +- .../test => test}/arena/arena_gravity.test.ts | 0 .../arena/grassy_terrain.test.ts | 0 {src/test => test}/arena/weather_fog.test.ts | 0 {src/test => test}/arena/weather_hail.test.ts | 0 .../arena/weather_sandstorm.test.ts | 0 .../arena/weather_strong_winds.test.ts | 0 {src/test => test}/battle-scene.test.ts | 0 .../test => test}/battle/battle-order.test.ts | 0 {src/test => test}/battle/battle.test.ts | 4 +- .../battle/damage_calculation.test.ts | 0 .../battle/double_battle.test.ts | 0 .../battle/inverse_battle.test.ts | 0 .../battle/special_battle.test.ts | 0 .../battlerTags/octolock.test.ts | 0 .../battlerTags/stockpiling.test.ts | 0 .../battlerTags/substitute.test.ts | 0 {src/test => test}/boss-pokemon.test.ts | 0 {src/test => test}/daily_mode.test.ts | 2 +- .../data/splash_messages.test.ts | 0 {src/test => test}/data/status_effect.test.ts | 0 {src/test => test}/eggs/egg.test.ts | 0 {src/test => test}/eggs/manaphy-egg.test.ts | 0 {src/test => test}/endless_boss.test.ts | 0 {src/test => test}/enemy_command.test.ts | 0 .../test => test}/escape-calculations.test.ts | 0 {src/test => test}/evolution.test.ts | 0 {src/test => test}/field/pokemon.test.ts | 2 +- {src/test => test}/final_boss.test.ts | 0 {src/test => test}/fontFace.setup.ts | 0 {src/test => test}/game-mode.test.ts | 2 +- {src/test => test}/imports.test.ts | 0 {src/test => test}/inputs/inputs.test.ts | 0 {src/test => test}/internals.test.ts | 0 {src/test => test}/items/dire_hit.test.ts | 0 .../double_battle_chance_booster.test.ts | 0 {src/test => test}/items/eviolite.test.ts | 0 {src/test => test}/items/exp_booster.test.ts | 0 {src/test => test}/items/grip_claw.test.ts | 0 {src/test => test}/items/leek.test.ts | 0 {src/test => test}/items/leftovers.test.ts | 0 {src/test => test}/items/light_ball.test.ts | 0 {src/test => test}/items/lock_capsule.test.ts | 0 {src/test => test}/items/metal_powder.test.ts | 0 {src/test => test}/items/multi_lens.test.ts | 0 {src/test => test}/items/quick_powder.test.ts | 0 {src/test => test}/items/scope_lens.test.ts | 0 .../items/temp_stat_stage_booster.test.ts | 0 {src/test => test}/items/thick_club.test.ts | 0 {src/test => test}/items/toxic_orb.test.ts | 0 {src/test => test}/misc.test.ts | 0 {src/test => test}/moves/after_you.test.ts | 0 .../moves/alluring_voice.test.ts | 0 {src/test => test}/moves/aromatherapy.test.ts | 0 {src/test => test}/moves/assist.test.ts | 0 {src/test => test}/moves/astonish.test.ts | 0 {src/test => test}/moves/aurora_veil.test.ts | 0 {src/test => test}/moves/autotomize.test.ts | 0 {src/test => test}/moves/baddy_bad.test.ts | 0 .../moves/baneful_bunker.test.ts | 2 +- {src/test => test}/moves/baton_pass.test.ts | 2 +- {src/test => test}/moves/beak_blast.test.ts | 0 {src/test => test}/moves/beat_up.test.ts | 0 {src/test => test}/moves/belly_drum.test.ts | 0 .../moves/burning_jealousy.test.ts | 0 {src/test => test}/moves/camouflage.test.ts | 0 .../moves/ceaseless_edge.test.ts | 0 .../moves/chilly_reception.test.ts | 0 {src/test => test}/moves/chloroblast.test.ts | 0 .../moves/clangorous_soul.test.ts | 0 {src/test => test}/moves/copycat.test.ts | 0 .../test => test}/moves/crafty_shield.test.ts | 2 +- {src/test => test}/moves/defog.test.ts | 0 {src/test => test}/moves/destiny_bond.test.ts | 0 .../test => test}/moves/diamond_storm.test.ts | 0 {src/test => test}/moves/dig.test.ts | 0 {src/test => test}/moves/disable.test.ts | 0 {src/test => test}/moves/dive.test.ts | 0 {src/test => test}/moves/double_team.test.ts | 0 {src/test => test}/moves/dragon_cheer.test.ts | 0 {src/test => test}/moves/dragon_rage.test.ts | 0 {src/test => test}/moves/dragon_tail.test.ts | 0 .../moves/dynamax_cannon.test.ts | 0 .../test => test}/moves/effectiveness.test.ts | 0 {src/test => test}/moves/electrify.test.ts | 0 {src/test => test}/moves/electro_shot.test.ts | 0 {src/test => test}/moves/encore.test.ts | 0 {src/test => test}/moves/endure.test.ts | 0 {src/test => test}/moves/fairy_lock.test.ts | 0 {src/test => test}/moves/fake_out.test.ts | 2 +- {src/test => test}/moves/fell_stinger.test.ts | 2 +- {src/test => test}/moves/fillet_away.test.ts | 0 {src/test => test}/moves/fissure.test.ts | 0 {src/test => test}/moves/flame_burst.test.ts | 0 .../test => test}/moves/flower_shield.test.ts | 0 {src/test => test}/moves/fly.test.ts | 0 {src/test => test}/moves/focus_punch.test.ts | 0 {src/test => test}/moves/follow_me.test.ts | 0 {src/test => test}/moves/foresight.test.ts | 0 .../test => test}/moves/forests_curse.test.ts | 0 {src/test => test}/moves/freeze_dry.test.ts | 0 {src/test => test}/moves/freezy_frost.test.ts | 0 {src/test => test}/moves/fusion_bolt.test.ts | 0 {src/test => test}/moves/fusion_flare.test.ts | 0 .../moves/fusion_flare_bolt.test.ts | 0 {src/test => test}/moves/future_sight.test.ts | 0 {src/test => test}/moves/gastro_acid.test.ts | 0 {src/test => test}/moves/geomancy.test.ts | 0 .../moves/gigaton_hammer.test.ts | 2 +- {src/test => test}/moves/glaive_rush.test.ts | 0 {src/test => test}/moves/growth.test.ts | 0 {src/test => test}/moves/grudge.test.ts | 0 {src/test => test}/moves/guard_split.test.ts | 2 +- {src/test => test}/moves/guard_swap.test.ts | 2 +- {src/test => test}/moves/hard_press.test.ts | 0 {src/test => test}/moves/haze.test.ts | 0 {src/test => test}/moves/heal_bell.test.ts | 0 {src/test => test}/moves/heal_block.test.ts | 2 +- {src/test => test}/moves/heart_swap.test.ts | 2 +- {src/test => test}/moves/hyper_beam.test.ts | 0 {src/test => test}/moves/imprison.test.ts | 0 {src/test => test}/moves/instruct.test.ts | 0 {src/test => test}/moves/jaw_lock.test.ts | 2 +- {src/test => test}/moves/lash_out.test.ts | 0 .../test => test}/moves/last_respects.test.ts | 0 {src/test => test}/moves/light_screen.test.ts | 0 {src/test => test}/moves/lucky_chant.test.ts | 2 +- .../moves/lunar_blessing.test.ts | 0 {src/test => test}/moves/lunar_dance.test.ts | 0 {src/test => test}/moves/magic_coat.test.ts | 0 {src/test => test}/moves/magnet_rise.test.ts | 0 {src/test => test}/moves/make_it_rain.test.ts | 0 {src/test => test}/moves/mat_block.test.ts | 2 +- {src/test => test}/moves/metal_burst.test.ts | 0 {src/test => test}/moves/metronome.test.ts | 0 {src/test => test}/moves/miracle_eye.test.ts | 0 {src/test => test}/moves/mirror_move.test.ts | 0 {src/test => test}/moves/mist.test.ts | 0 .../moves/moongeist_beam.test.ts | 0 {src/test => test}/moves/multi_target.test.ts | 0 {src/test => test}/moves/nightmare.test.ts | 0 {src/test => test}/moves/obstruct.test.ts | 0 {src/test => test}/moves/octolock.test.ts | 0 {src/test => test}/moves/order_up.test.ts | 0 {src/test => test}/moves/parting_shot.test.ts | 2 +- {src/test => test}/moves/plasma_fists.test.ts | 0 {src/test => test}/moves/pledge_moves.test.ts | 0 {src/test => test}/moves/powder.test.ts | 0 {src/test => test}/moves/power_shift.test.ts | 0 {src/test => test}/moves/power_split.test.ts | 2 +- {src/test => test}/moves/power_swap.test.ts | 2 +- {src/test => test}/moves/power_trick.test.ts | 2 +- {src/test => test}/moves/protect.test.ts | 2 +- {src/test => test}/moves/psycho_shift.test.ts | 0 {src/test => test}/moves/purify.test.ts | 0 {src/test => test}/moves/quick_guard.test.ts | 2 +- {src/test => test}/moves/rage_fist.test.ts | 0 {src/test => test}/moves/rage_powder.test.ts | 0 {src/test => test}/moves/reflect.test.ts | 0 {src/test => test}/moves/reflect_type.test.ts | 0 {src/test => test}/moves/relic_song.test.ts | 0 {src/test => test}/moves/retaliate.test.ts | 2 +- {src/test => test}/moves/rollout.test.ts | 0 {src/test => test}/moves/roost.test.ts | 0 {src/test => test}/moves/round.test.ts | 0 {src/test => test}/moves/safeguard.test.ts | 2 +- {src/test => test}/moves/scale_shot.test.ts | 0 {src/test => test}/moves/secret_power.test.ts | 0 {src/test => test}/moves/shed_tail.test.ts | 0 .../moves/shell_side_arm.test.ts | 0 {src/test => test}/moves/shell_trap.test.ts | 0 {src/test => test}/moves/sketch.test.ts | 0 {src/test => test}/moves/sleep_talk.test.ts | 0 {src/test => test}/moves/solar_beam.test.ts | 0 .../test => test}/moves/sparkly_swirl.test.ts | 0 .../moves/spectral_thief.test.ts | 0 {src/test => test}/moves/speed_swap.test.ts | 2 +- {src/test => test}/moves/spikes.test.ts | 0 {src/test => test}/moves/spit_up.test.ts | 0 {src/test => test}/moves/spotlight.test.ts | 0 {src/test => test}/moves/steamroller.test.ts | 0 {src/test => test}/moves/stockpile.test.ts | 0 {src/test => test}/moves/substitute.test.ts | 2 +- {src/test => test}/moves/swallow.test.ts | 0 {src/test => test}/moves/syrup_bomb.test.ts | 0 {src/test => test}/moves/tackle.test.ts | 0 {src/test => test}/moves/tail_whip.test.ts | 0 {src/test => test}/moves/tailwind.test.ts | 0 {src/test => test}/moves/tar_shot.test.ts | 0 {src/test => test}/moves/taunt.test.ts | 0 {src/test => test}/moves/telekinesis.test.ts | 0 {src/test => test}/moves/tera_blast.test.ts | 0 .../moves/tera_starstorm.test.ts | 0 .../moves/thousand_arrows.test.ts | 0 {src/test => test}/moves/throat_chop.test.ts | 0 {src/test => test}/moves/thunder_wave.test.ts | 0 {src/test => test}/moves/tidy_up.test.ts | 0 {src/test => test}/moves/torment.test.ts | 0 {src/test => test}/moves/toxic.test.ts | 0 {src/test => test}/moves/toxic_spikes.test.ts | 0 {src/test => test}/moves/transform.test.ts | 2 +- .../moves/trick_or_treat.test.ts | 0 .../test => test}/moves/triple_arrows.test.ts | 0 {src/test => test}/moves/u_turn.test.ts | 0 {src/test => test}/moves/upper_hand.test.ts | 0 {src/test => test}/moves/whirlwind.test.ts | 0 {src/test => test}/moves/wide_guard.test.ts | 2 +- {src/test => test}/moves/will_o_wisp.test.ts | 0 .../mystery-encounter/encounter-test-utils.ts | 0 .../a-trainers-test-encounter.test.ts | 2 +- .../absolute-avarice-encounter.test.ts | 2 +- ...an-offer-you-cant-refuse-encounter.test.ts | 2 +- .../berries-abound-encounter.test.ts | 2 +- .../bug-type-superfan-encounter.test.ts | 2 +- .../clowning-around-encounter.test.ts | 2 +- .../dancing-lessons-encounter.test.ts | 2 +- .../encounters/delibirdy-encounter.test.ts | 2 +- .../department-store-sale-encounter.test.ts | 2 +- .../encounters/field-trip-encounter.test.ts | 2 +- .../fiery-fallout-encounter.test.ts | 0 .../fight-or-flight-encounter.test.ts | 2 +- .../fun-and-games-encounter.test.ts | 2 +- .../global-trade-system-encounter.test.ts | 2 +- .../encounters/lost-at-sea-encounter.test.ts | 4 +- .../mysterious-challengers-encounter.test.ts | 2 +- .../encounters/part-timer-encounter.test.ts | 2 +- .../encounters/safari-zone.test.ts | 0 .../teleporting-hijinks-encounter.test.ts | 0 .../the-expert-breeder-encounter.test.ts | 2 +- .../the-pokemon-salesman-encounter.test.ts | 2 +- .../the-strong-stuff-encounter.test.ts | 0 .../the-winstrate-challenge-encounter.test.ts | 0 .../trash-to-treasure-encounter.test.ts | 2 +- .../uncommon-breed-encounter.test.ts | 2 +- .../encounters/weird-dream-encounter.test.ts | 2 +- .../mystery-encounter-utils.test.ts | 2 +- .../mystery-encounter.test.ts | 2 +- .../phases/form-change-phase.test.ts | 0 .../phases/frenzy-move-reset.test.ts | 0 .../phases/game-over-phase.test.ts | 0 .../phases/learn-move-phase.test.ts | 0 .../phases/mystery-encounter-phase.test.ts | 2 +- {src/test => test}/phases/phases.test.ts | 0 .../phases/select-modifier-phase.test.ts | 0 .../plugins/api/pokerogue-account-api.test.ts | 2 +- .../plugins/api/pokerogue-admin-api.test.ts | 2 +- .../plugins/api/pokerogue-api.test.ts | 2 +- .../plugins/api/pokerogue-daily-api.test.ts | 2 +- .../api/pokerogue-savedata-api.test.ts | 2 +- .../pokerogue-session-savedata-api.test.ts | 2 +- .../api/pokerogue-system-savedata-api.test.ts | 2 +- {src/test => test}/pre.test.ts | 0 {src/test => test}/reload.test.ts | 0 .../settingMenu/helpers/inGameManip.ts | 0 .../settingMenu/helpers/menuManip.ts | 0 .../settingMenu/rebinding_setting.test.ts | 0 .../sprites/pokemonSprite.test.ts | 2 +- {src/test => test}/sprites/spritesUtils.ts | 0 {src/test => test}/system/game_data.test.ts | 2 +- {src/test => test}/ui/battle_info.test.ts | 2 +- test/ui/pokedex.test.ts | 600 ++++++++++++++++++ {src/test => test}/ui/starter-select.test.ts | 0 {src/test => test}/ui/transfer-item.test.ts | 0 {src/test => test}/ui/type-hints.test.ts | 0 {src/test => test}/utils/TextInterceptor.ts | 0 {src/test => test}/utils/errorInterceptor.ts | 0 {src/test => test}/utils/fakeMobile.html | 0 {src/test => test}/utils/gameManager.ts | 4 +- {src/test => test}/utils/gameManagerUtils.ts | 0 {src/test => test}/utils/gameWrapper.ts | 2 +- .../utils/helpers/challengeModeHelper.ts | 2 +- .../utils/helpers/classicModeHelper.ts | 2 +- .../utils/helpers/dailyModeHelper.ts | 0 .../utils/helpers/gameManagerHelper.ts | 2 +- .../utils/helpers/modifiersHelper.ts | 0 .../test => test}/utils/helpers/moveHelper.ts | 0 .../utils/helpers/overridesHelper.ts | 0 .../utils/helpers/reloadHelper.ts | 2 +- .../utils/helpers/settingsHelper.ts | 0 {src/test => test}/utils/inputsHandler.ts | 0 {src/test => test}/utils/mocks/mockClock.ts | 0 .../utils/mocks/mockConsoleLog.ts | 0 {src/test => test}/utils/mocks/mockFetch.ts | 0 .../utils/mocks/mockGameObject.ts | 0 .../utils/mocks/mockGameObjectCreator.ts | 0 {src/test => test}/utils/mocks/mockLoader.ts | 0 .../utils/mocks/mockLocalStorage.ts | 0 .../utils/mocks/mockTextureManager.ts | 0 .../utils/mocks/mockTimedEventManager.ts | 0 .../utils/mocks/mockVideoGameObject.ts | 0 .../mocks/mocksContainer/mockContainer.ts | 2 +- .../mocks/mocksContainer/mockGraphics.ts | 2 +- .../utils/mocks/mocksContainer/mockImage.ts | 0 .../mocks/mocksContainer/mockNineslice.ts | 0 .../utils/mocks/mocksContainer/mockPolygon.ts | 0 .../mocks/mocksContainer/mockRectangle.ts | 2 +- .../utils/mocks/mocksContainer/mockSprite.ts | 2 +- .../utils/mocks/mocksContainer/mockText.ts | 2 +- .../utils/mocks/mocksContainer/mockTexture.ts | 2 +- {src/test => test}/utils/phaseInterceptor.ts | 2 +- {src/test => test}/utils/saves/data_new.prsv | 0 .../test => test}/utils/saves/everything.prsv | 0 {src/test => test}/utils/testUtils.ts | 0 {src/test => test}/vitest.setup.ts | 2 +- tsconfig.json | 6 +- vitest.config.ts | 6 +- vitest.workspace.ts | 2 +- 393 files changed, 693 insertions(+), 93 deletions(-) rename {src/test => test}/abilities/ability_duplication.test.ts (100%) rename {src/test => test}/abilities/ability_timing.test.ts (100%) rename {src/test => test}/abilities/analytic.test.ts (100%) rename {src/test => test}/abilities/arena_trap.test.ts (100%) rename {src/test => test}/abilities/aroma_veil.test.ts (100%) rename {src/test => test}/abilities/aura_break.test.ts (100%) rename {src/test => test}/abilities/battery.test.ts (100%) rename {src/test => test}/abilities/battle_bond.test.ts (100%) rename {src/test => test}/abilities/beast_boost.test.ts (100%) rename {src/test => test}/abilities/commander.test.ts (100%) rename {src/test => test}/abilities/competitive.test.ts (100%) rename {src/test => test}/abilities/contrary.test.ts (100%) rename {src/test => test}/abilities/corrosion.test.ts (100%) rename {src/test => test}/abilities/costar.test.ts (100%) rename {src/test => test}/abilities/dancer.test.ts (100%) rename {src/test => test}/abilities/defiant.test.ts (100%) rename {src/test => test}/abilities/desolate-land.test.ts (100%) rename {src/test => test}/abilities/disguise.test.ts (100%) rename {src/test => test}/abilities/dry_skin.test.ts (100%) rename {src/test => test}/abilities/early_bird.test.ts (100%) rename {src/test => test}/abilities/flash_fire.test.ts (100%) rename {src/test => test}/abilities/flower_gift.test.ts (100%) rename {src/test => test}/abilities/forecast.test.ts (100%) rename {src/test => test}/abilities/friend_guard.test.ts (100%) rename {src/test => test}/abilities/galvanize.test.ts (100%) rename {src/test => test}/abilities/good_as_gold.test.ts (100%) rename {src/test => test}/abilities/gorilla_tactics.test.ts (100%) rename {src/test => test}/abilities/gulp_missile.test.ts (100%) rename {src/test => test}/abilities/heatproof.test.ts (100%) rename {src/test => test}/abilities/honey_gather.test.ts (100%) rename {src/test => test}/abilities/hustle.test.ts (100%) rename {src/test => test}/abilities/hyper_cutter.test.ts (100%) rename {src/test => test}/abilities/ice_face.test.ts (100%) rename {src/test => test}/abilities/illuminate.test.ts (100%) rename {src/test => test}/abilities/imposter.test.ts (98%) rename {src/test => test}/abilities/infiltrator.test.ts (100%) rename {src/test => test}/abilities/intimidate.test.ts (100%) rename {src/test => test}/abilities/intrepid_sword.test.ts (100%) rename {src/test => test}/abilities/libero.test.ts (100%) rename {src/test => test}/abilities/magic_bounce.test.ts (100%) rename {src/test => test}/abilities/magic_guard.test.ts (100%) rename {src/test => test}/abilities/mimicry.test.ts (100%) rename {src/test => test}/abilities/mirror_armor.test.ts (100%) rename {src/test => test}/abilities/moody.test.ts (100%) rename {src/test => test}/abilities/moxie.test.ts (100%) rename {src/test => test}/abilities/mycelium_might.test.ts (100%) rename {src/test => test}/abilities/no_guard.test.ts (100%) rename {src/test => test}/abilities/parental_bond.test.ts (100%) rename {src/test => test}/abilities/pastel_veil.test.ts (100%) rename {src/test => test}/abilities/perish_body.test.ts (100%) rename {src/test => test}/abilities/power_construct.test.ts (100%) rename {src/test => test}/abilities/power_spot.test.ts (100%) rename {src/test => test}/abilities/protean.test.ts (100%) rename {src/test => test}/abilities/protosynthesis.test.ts (100%) rename {src/test => test}/abilities/quick_draw.test.ts (100%) rename {src/test => test}/abilities/sand_spit.test.ts (100%) rename {src/test => test}/abilities/sand_veil.test.ts (100%) rename {src/test => test}/abilities/sap_sipper.test.ts (100%) rename {src/test => test}/abilities/schooling.test.ts (100%) rename {src/test => test}/abilities/screen_cleaner.test.ts (100%) rename {src/test => test}/abilities/seed_sower.test.ts (100%) rename {src/test => test}/abilities/serene_grace.test.ts (100%) rename {src/test => test}/abilities/sheer_force.test.ts (100%) rename {src/test => test}/abilities/shield_dust.test.ts (100%) rename {src/test => test}/abilities/shields_down.test.ts (100%) rename {src/test => test}/abilities/simple.test.ts (100%) rename {src/test => test}/abilities/speed_boost.test.ts (100%) rename {src/test => test}/abilities/stakeout.test.ts (100%) rename {src/test => test}/abilities/stall.test.ts (100%) rename {src/test => test}/abilities/steely_spirit.test.ts (100%) rename {src/test => test}/abilities/sturdy.test.ts (100%) rename {src/test => test}/abilities/supreme_overlord.test.ts (100%) rename {src/test => test}/abilities/sweet_veil.test.ts (100%) rename {src/test => test}/abilities/synchronize.test.ts (100%) rename {src/test => test}/abilities/tera_shell.test.ts (100%) rename {src/test => test}/abilities/unburden.test.ts (100%) rename {src/test => test}/abilities/unseen_fist.test.ts (100%) rename {src/test => test}/abilities/volt_absorb.test.ts (100%) rename {src/test => test}/abilities/wimp_out.test.ts (99%) rename {src/test => test}/abilities/wind_power.test.ts (100%) rename {src/test => test}/abilities/wind_rider.test.ts (100%) rename {src/test => test}/abilities/wonder_skin.test.ts (100%) rename {src/test => test}/abilities/zen_mode.test.ts (100%) rename {src/test => test}/abilities/zero_to_hero.test.ts (100%) rename {src/test => test}/account.test.ts (99%) rename {src/test => test}/achievements/achievement.test.ts (99%) rename {src/test => test}/arena/arena_gravity.test.ts (100%) rename {src/test => test}/arena/grassy_terrain.test.ts (100%) rename {src/test => test}/arena/weather_fog.test.ts (100%) rename {src/test => test}/arena/weather_hail.test.ts (100%) rename {src/test => test}/arena/weather_sandstorm.test.ts (100%) rename {src/test => test}/arena/weather_strong_winds.test.ts (100%) rename {src/test => test}/battle-scene.test.ts (100%) rename {src/test => test}/battle/battle-order.test.ts (100%) rename {src/test => test}/battle/battle.test.ts (99%) rename {src/test => test}/battle/damage_calculation.test.ts (100%) rename {src/test => test}/battle/double_battle.test.ts (100%) rename {src/test => test}/battle/inverse_battle.test.ts (100%) rename {src/test => test}/battle/special_battle.test.ts (100%) rename {src/test => test}/battlerTags/octolock.test.ts (100%) rename {src/test => test}/battlerTags/stockpiling.test.ts (100%) rename {src/test => test}/battlerTags/substitute.test.ts (100%) rename {src/test => test}/boss-pokemon.test.ts (100%) rename {src/test => test}/daily_mode.test.ts (98%) rename {src/test => test}/data/splash_messages.test.ts (100%) rename {src/test => test}/data/status_effect.test.ts (100%) rename {src/test => test}/eggs/egg.test.ts (100%) rename {src/test => test}/eggs/manaphy-egg.test.ts (100%) rename {src/test => test}/endless_boss.test.ts (100%) rename {src/test => test}/enemy_command.test.ts (100%) rename {src/test => test}/escape-calculations.test.ts (100%) rename {src/test => test}/evolution.test.ts (100%) rename {src/test => test}/field/pokemon.test.ts (99%) rename {src/test => test}/final_boss.test.ts (100%) rename {src/test => test}/fontFace.setup.ts (100%) rename {src/test => test}/game-mode.test.ts (98%) rename {src/test => test}/imports.test.ts (100%) rename {src/test => test}/inputs/inputs.test.ts (100%) rename {src/test => test}/internals.test.ts (100%) rename {src/test => test}/items/dire_hit.test.ts (100%) rename {src/test => test}/items/double_battle_chance_booster.test.ts (100%) rename {src/test => test}/items/eviolite.test.ts (100%) rename {src/test => test}/items/exp_booster.test.ts (100%) rename {src/test => test}/items/grip_claw.test.ts (100%) rename {src/test => test}/items/leek.test.ts (100%) rename {src/test => test}/items/leftovers.test.ts (100%) rename {src/test => test}/items/light_ball.test.ts (100%) rename {src/test => test}/items/lock_capsule.test.ts (100%) rename {src/test => test}/items/metal_powder.test.ts (100%) rename {src/test => test}/items/multi_lens.test.ts (100%) rename {src/test => test}/items/quick_powder.test.ts (100%) rename {src/test => test}/items/scope_lens.test.ts (100%) rename {src/test => test}/items/temp_stat_stage_booster.test.ts (100%) rename {src/test => test}/items/thick_club.test.ts (100%) rename {src/test => test}/items/toxic_orb.test.ts (100%) rename {src/test => test}/misc.test.ts (100%) rename {src/test => test}/moves/after_you.test.ts (100%) rename {src/test => test}/moves/alluring_voice.test.ts (100%) rename {src/test => test}/moves/aromatherapy.test.ts (100%) rename {src/test => test}/moves/assist.test.ts (100%) rename {src/test => test}/moves/astonish.test.ts (100%) rename {src/test => test}/moves/aurora_veil.test.ts (100%) rename {src/test => test}/moves/autotomize.test.ts (100%) rename {src/test => test}/moves/baddy_bad.test.ts (100%) rename {src/test => test}/moves/baneful_bunker.test.ts (98%) rename {src/test => test}/moves/baton_pass.test.ts (98%) rename {src/test => test}/moves/beak_blast.test.ts (100%) rename {src/test => test}/moves/beat_up.test.ts (100%) rename {src/test => test}/moves/belly_drum.test.ts (100%) rename {src/test => test}/moves/burning_jealousy.test.ts (100%) rename {src/test => test}/moves/camouflage.test.ts (100%) rename {src/test => test}/moves/ceaseless_edge.test.ts (100%) rename {src/test => test}/moves/chilly_reception.test.ts (100%) rename {src/test => test}/moves/chloroblast.test.ts (100%) rename {src/test => test}/moves/clangorous_soul.test.ts (100%) rename {src/test => test}/moves/copycat.test.ts (100%) rename {src/test => test}/moves/crafty_shield.test.ts (98%) rename {src/test => test}/moves/defog.test.ts (100%) rename {src/test => test}/moves/destiny_bond.test.ts (100%) rename {src/test => test}/moves/diamond_storm.test.ts (100%) rename {src/test => test}/moves/dig.test.ts (100%) rename {src/test => test}/moves/disable.test.ts (100%) rename {src/test => test}/moves/dive.test.ts (100%) rename {src/test => test}/moves/double_team.test.ts (100%) rename {src/test => test}/moves/dragon_cheer.test.ts (100%) rename {src/test => test}/moves/dragon_rage.test.ts (100%) rename {src/test => test}/moves/dragon_tail.test.ts (100%) rename {src/test => test}/moves/dynamax_cannon.test.ts (100%) rename {src/test => test}/moves/effectiveness.test.ts (100%) rename {src/test => test}/moves/electrify.test.ts (100%) rename {src/test => test}/moves/electro_shot.test.ts (100%) rename {src/test => test}/moves/encore.test.ts (100%) rename {src/test => test}/moves/endure.test.ts (100%) rename {src/test => test}/moves/fairy_lock.test.ts (100%) rename {src/test => test}/moves/fake_out.test.ts (98%) rename {src/test => test}/moves/fell_stinger.test.ts (99%) rename {src/test => test}/moves/fillet_away.test.ts (100%) rename {src/test => test}/moves/fissure.test.ts (100%) rename {src/test => test}/moves/flame_burst.test.ts (100%) rename {src/test => test}/moves/flower_shield.test.ts (100%) rename {src/test => test}/moves/fly.test.ts (100%) rename {src/test => test}/moves/focus_punch.test.ts (100%) rename {src/test => test}/moves/follow_me.test.ts (100%) rename {src/test => test}/moves/foresight.test.ts (100%) rename {src/test => test}/moves/forests_curse.test.ts (100%) rename {src/test => test}/moves/freeze_dry.test.ts (100%) rename {src/test => test}/moves/freezy_frost.test.ts (100%) rename {src/test => test}/moves/fusion_bolt.test.ts (100%) rename {src/test => test}/moves/fusion_flare.test.ts (100%) rename {src/test => test}/moves/fusion_flare_bolt.test.ts (100%) rename {src/test => test}/moves/future_sight.test.ts (100%) rename {src/test => test}/moves/gastro_acid.test.ts (100%) rename {src/test => test}/moves/geomancy.test.ts (100%) rename {src/test => test}/moves/gigaton_hammer.test.ts (97%) rename {src/test => test}/moves/glaive_rush.test.ts (100%) rename {src/test => test}/moves/growth.test.ts (100%) rename {src/test => test}/moves/grudge.test.ts (100%) rename {src/test => test}/moves/guard_split.test.ts (97%) rename {src/test => test}/moves/guard_swap.test.ts (97%) rename {src/test => test}/moves/hard_press.test.ts (100%) rename {src/test => test}/moves/haze.test.ts (100%) rename {src/test => test}/moves/heal_bell.test.ts (100%) rename {src/test => test}/moves/heal_block.test.ts (98%) rename {src/test => test}/moves/heart_swap.test.ts (96%) rename {src/test => test}/moves/hyper_beam.test.ts (100%) rename {src/test => test}/moves/imprison.test.ts (100%) rename {src/test => test}/moves/instruct.test.ts (100%) rename {src/test => test}/moves/jaw_lock.test.ts (99%) rename {src/test => test}/moves/lash_out.test.ts (100%) rename {src/test => test}/moves/last_respects.test.ts (100%) rename {src/test => test}/moves/light_screen.test.ts (100%) rename {src/test => test}/moves/lucky_chant.test.ts (98%) rename {src/test => test}/moves/lunar_blessing.test.ts (100%) rename {src/test => test}/moves/lunar_dance.test.ts (100%) rename {src/test => test}/moves/magic_coat.test.ts (100%) rename {src/test => test}/moves/magnet_rise.test.ts (100%) rename {src/test => test}/moves/make_it_rain.test.ts (100%) rename {src/test => test}/moves/mat_block.test.ts (98%) rename {src/test => test}/moves/metal_burst.test.ts (100%) rename {src/test => test}/moves/metronome.test.ts (100%) rename {src/test => test}/moves/miracle_eye.test.ts (100%) rename {src/test => test}/moves/mirror_move.test.ts (100%) rename {src/test => test}/moves/mist.test.ts (100%) rename {src/test => test}/moves/moongeist_beam.test.ts (100%) rename {src/test => test}/moves/multi_target.test.ts (100%) rename {src/test => test}/moves/nightmare.test.ts (100%) rename {src/test => test}/moves/obstruct.test.ts (100%) rename {src/test => test}/moves/octolock.test.ts (100%) rename {src/test => test}/moves/order_up.test.ts (100%) rename {src/test => test}/moves/parting_shot.test.ts (99%) rename {src/test => test}/moves/plasma_fists.test.ts (100%) rename {src/test => test}/moves/pledge_moves.test.ts (100%) rename {src/test => test}/moves/powder.test.ts (100%) rename {src/test => test}/moves/power_shift.test.ts (100%) rename {src/test => test}/moves/power_split.test.ts (97%) rename {src/test => test}/moves/power_swap.test.ts (97%) rename {src/test => test}/moves/power_trick.test.ts (98%) rename {src/test => test}/moves/protect.test.ts (98%) rename {src/test => test}/moves/psycho_shift.test.ts (100%) rename {src/test => test}/moves/purify.test.ts (100%) rename {src/test => test}/moves/quick_guard.test.ts (98%) rename {src/test => test}/moves/rage_fist.test.ts (100%) rename {src/test => test}/moves/rage_powder.test.ts (100%) rename {src/test => test}/moves/reflect.test.ts (100%) rename {src/test => test}/moves/reflect_type.test.ts (100%) rename {src/test => test}/moves/relic_song.test.ts (100%) rename {src/test => test}/moves/retaliate.test.ts (96%) rename {src/test => test}/moves/rollout.test.ts (100%) rename {src/test => test}/moves/roost.test.ts (100%) rename {src/test => test}/moves/round.test.ts (100%) rename {src/test => test}/moves/safeguard.test.ts (98%) rename {src/test => test}/moves/scale_shot.test.ts (100%) rename {src/test => test}/moves/secret_power.test.ts (100%) rename {src/test => test}/moves/shed_tail.test.ts (100%) rename {src/test => test}/moves/shell_side_arm.test.ts (100%) rename {src/test => test}/moves/shell_trap.test.ts (100%) rename {src/test => test}/moves/sketch.test.ts (100%) rename {src/test => test}/moves/sleep_talk.test.ts (100%) rename {src/test => test}/moves/solar_beam.test.ts (100%) rename {src/test => test}/moves/sparkly_swirl.test.ts (100%) rename {src/test => test}/moves/spectral_thief.test.ts (100%) rename {src/test => test}/moves/speed_swap.test.ts (96%) rename {src/test => test}/moves/spikes.test.ts (100%) rename {src/test => test}/moves/spit_up.test.ts (100%) rename {src/test => test}/moves/spotlight.test.ts (100%) rename {src/test => test}/moves/steamroller.test.ts (100%) rename {src/test => test}/moves/stockpile.test.ts (100%) rename {src/test => test}/moves/substitute.test.ts (99%) rename {src/test => test}/moves/swallow.test.ts (100%) rename {src/test => test}/moves/syrup_bomb.test.ts (100%) rename {src/test => test}/moves/tackle.test.ts (100%) rename {src/test => test}/moves/tail_whip.test.ts (100%) rename {src/test => test}/moves/tailwind.test.ts (100%) rename {src/test => test}/moves/tar_shot.test.ts (100%) rename {src/test => test}/moves/taunt.test.ts (100%) rename {src/test => test}/moves/telekinesis.test.ts (100%) rename {src/test => test}/moves/tera_blast.test.ts (100%) rename {src/test => test}/moves/tera_starstorm.test.ts (100%) rename {src/test => test}/moves/thousand_arrows.test.ts (100%) rename {src/test => test}/moves/throat_chop.test.ts (100%) rename {src/test => test}/moves/thunder_wave.test.ts (100%) rename {src/test => test}/moves/tidy_up.test.ts (100%) rename {src/test => test}/moves/torment.test.ts (100%) rename {src/test => test}/moves/toxic.test.ts (100%) rename {src/test => test}/moves/toxic_spikes.test.ts (100%) rename {src/test => test}/moves/transform.test.ts (98%) rename {src/test => test}/moves/trick_or_treat.test.ts (100%) rename {src/test => test}/moves/triple_arrows.test.ts (100%) rename {src/test => test}/moves/u_turn.test.ts (100%) rename {src/test => test}/moves/upper_hand.test.ts (100%) rename {src/test => test}/moves/whirlwind.test.ts (100%) rename {src/test => test}/moves/wide_guard.test.ts (98%) rename {src/test => test}/moves/will_o_wisp.test.ts (100%) rename {src/test => test}/mystery-encounter/encounter-test-utils.ts (100%) rename {src/test => test}/mystery-encounter/encounters/a-trainers-test-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/absolute-avarice-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/berries-abound-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/clowning-around-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/dancing-lessons-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/delibirdy-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/department-store-sale-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/field-trip-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/fiery-fallout-encounter.test.ts (100%) rename {src/test => test}/mystery-encounter/encounters/fight-or-flight-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/fun-and-games-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/global-trade-system-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/lost-at-sea-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/part-timer-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/safari-zone.test.ts (100%) rename {src/test => test}/mystery-encounter/encounters/teleporting-hijinks-encounter.test.ts (100%) rename {src/test => test}/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/the-strong-stuff-encounter.test.ts (100%) rename {src/test => test}/mystery-encounter/encounters/the-winstrate-challenge-encounter.test.ts (100%) rename {src/test => test}/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/uncommon-breed-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/encounters/weird-dream-encounter.test.ts (99%) rename {src/test => test}/mystery-encounter/mystery-encounter-utils.test.ts (99%) rename {src/test => test}/mystery-encounter/mystery-encounter.test.ts (96%) rename {src/test => test}/phases/form-change-phase.test.ts (100%) rename {src/test => test}/phases/frenzy-move-reset.test.ts (100%) rename {src/test => test}/phases/game-over-phase.test.ts (100%) rename {src/test => test}/phases/learn-move-phase.test.ts (100%) rename {src/test => test}/phases/mystery-encounter-phase.test.ts (98%) rename {src/test => test}/phases/phases.test.ts (100%) rename {src/test => test}/phases/select-modifier-phase.test.ts (100%) rename {src/test => test}/plugins/api/pokerogue-account-api.test.ts (98%) rename {src/test => test}/plugins/api/pokerogue-admin-api.test.ts (99%) rename {src/test => test}/plugins/api/pokerogue-api.test.ts (98%) rename {src/test => test}/plugins/api/pokerogue-daily-api.test.ts (98%) rename {src/test => test}/plugins/api/pokerogue-savedata-api.test.ts (96%) rename {src/test => test}/plugins/api/pokerogue-session-savedata-api.test.ts (99%) rename {src/test => test}/plugins/api/pokerogue-system-savedata-api.test.ts (98%) rename {src/test => test}/pre.test.ts (100%) rename {src/test => test}/reload.test.ts (100%) rename {src/test => test}/settingMenu/helpers/inGameManip.ts (100%) rename {src/test => test}/settingMenu/helpers/menuManip.ts (100%) rename {src/test => test}/settingMenu/rebinding_setting.test.ts (100%) rename {src/test => test}/sprites/pokemonSprite.test.ts (99%) rename {src/test => test}/sprites/spritesUtils.ts (100%) rename {src/test => test}/system/game_data.test.ts (98%) rename {src/test => test}/ui/battle_info.test.ts (97%) create mode 100644 test/ui/pokedex.test.ts rename {src/test => test}/ui/starter-select.test.ts (100%) rename {src/test => test}/ui/transfer-item.test.ts (100%) rename {src/test => test}/ui/type-hints.test.ts (100%) rename {src/test => test}/utils/TextInterceptor.ts (100%) rename {src/test => test}/utils/errorInterceptor.ts (100%) rename {src/test => test}/utils/fakeMobile.html (100%) rename {src/test => test}/utils/gameManager.ts (99%) rename {src/test => test}/utils/gameManagerUtils.ts (100%) rename {src/test => test}/utils/gameWrapper.ts (99%) rename {src/test => test}/utils/helpers/challengeModeHelper.ts (98%) rename {src/test => test}/utils/helpers/classicModeHelper.ts (97%) rename {src/test => test}/utils/helpers/dailyModeHelper.ts (100%) rename {src/test => test}/utils/helpers/gameManagerHelper.ts (80%) rename {src/test => test}/utils/helpers/modifiersHelper.ts (100%) rename {src/test => test}/utils/helpers/moveHelper.ts (100%) rename {src/test => test}/utils/helpers/overridesHelper.ts (100%) rename {src/test => test}/utils/helpers/reloadHelper.ts (98%) rename {src/test => test}/utils/helpers/settingsHelper.ts (100%) rename {src/test => test}/utils/inputsHandler.ts (100%) rename {src/test => test}/utils/mocks/mockClock.ts (100%) rename {src/test => test}/utils/mocks/mockConsoleLog.ts (100%) rename {src/test => test}/utils/mocks/mockFetch.ts (100%) rename {src/test => test}/utils/mocks/mockGameObject.ts (100%) rename {src/test => test}/utils/mocks/mockGameObjectCreator.ts (100%) rename {src/test => test}/utils/mocks/mockLoader.ts (100%) rename {src/test => test}/utils/mocks/mockLocalStorage.ts (100%) rename {src/test => test}/utils/mocks/mockTextureManager.ts (100%) rename {src/test => test}/utils/mocks/mockTimedEventManager.ts (100%) rename {src/test => test}/utils/mocks/mockVideoGameObject.ts (100%) rename {src/test => test}/utils/mocks/mocksContainer/mockContainer.ts (98%) rename {src/test => test}/utils/mocks/mocksContainer/mockGraphics.ts (96%) rename {src/test => test}/utils/mocks/mocksContainer/mockImage.ts (100%) rename {src/test => test}/utils/mocks/mocksContainer/mockNineslice.ts (100%) rename {src/test => test}/utils/mocks/mocksContainer/mockPolygon.ts (100%) rename {src/test => test}/utils/mocks/mocksContainer/mockRectangle.ts (96%) rename {src/test => test}/utils/mocks/mocksContainer/mockSprite.ts (98%) rename {src/test => test}/utils/mocks/mocksContainer/mockText.ts (99%) rename {src/test => test}/utils/mocks/mocksContainer/mockTexture.ts (94%) rename {src/test => test}/utils/phaseInterceptor.ts (99%) rename {src/test => test}/utils/saves/data_new.prsv (100%) rename {src/test => test}/utils/saves/everything.prsv (100%) rename {src/test => test}/utils/testUtils.ts (100%) rename {src/test => test}/vitest.setup.ts (97%) diff --git a/eslint.config.js b/eslint.config.js index 0da9cc604bf..e79395e1900 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,7 +6,7 @@ import importX from 'eslint-plugin-import-x'; export default [ { name: "eslint-config", - files: ["src/**/*.{ts,tsx,js,jsx}"], + files: ["src/**/*.{ts,tsx,js,jsx}", "test/**/*.{ts,tsx,js,jsx}"], ignores: ["dist/*", "build/*", "coverage/*", "public/*", ".github/*", "node_modules/*", ".vscode/*"], languageOptions: { parser: parser @@ -52,7 +52,7 @@ export default [ }, { name: "eslint-tests", - files: ["src/test/**/**.test.ts"], + files: ["test/**/**.test.ts"], languageOptions: { parser: parser, parserOptions: { diff --git a/src/test/abilities/ability_duplication.test.ts b/test/abilities/ability_duplication.test.ts similarity index 100% rename from src/test/abilities/ability_duplication.test.ts rename to test/abilities/ability_duplication.test.ts diff --git a/src/test/abilities/ability_timing.test.ts b/test/abilities/ability_timing.test.ts similarity index 100% rename from src/test/abilities/ability_timing.test.ts rename to test/abilities/ability_timing.test.ts diff --git a/src/test/abilities/analytic.test.ts b/test/abilities/analytic.test.ts similarity index 100% rename from src/test/abilities/analytic.test.ts rename to test/abilities/analytic.test.ts diff --git a/src/test/abilities/arena_trap.test.ts b/test/abilities/arena_trap.test.ts similarity index 100% rename from src/test/abilities/arena_trap.test.ts rename to test/abilities/arena_trap.test.ts diff --git a/src/test/abilities/aroma_veil.test.ts b/test/abilities/aroma_veil.test.ts similarity index 100% rename from src/test/abilities/aroma_veil.test.ts rename to test/abilities/aroma_veil.test.ts diff --git a/src/test/abilities/aura_break.test.ts b/test/abilities/aura_break.test.ts similarity index 100% rename from src/test/abilities/aura_break.test.ts rename to test/abilities/aura_break.test.ts diff --git a/src/test/abilities/battery.test.ts b/test/abilities/battery.test.ts similarity index 100% rename from src/test/abilities/battery.test.ts rename to test/abilities/battery.test.ts diff --git a/src/test/abilities/battle_bond.test.ts b/test/abilities/battle_bond.test.ts similarity index 100% rename from src/test/abilities/battle_bond.test.ts rename to test/abilities/battle_bond.test.ts diff --git a/src/test/abilities/beast_boost.test.ts b/test/abilities/beast_boost.test.ts similarity index 100% rename from src/test/abilities/beast_boost.test.ts rename to test/abilities/beast_boost.test.ts diff --git a/src/test/abilities/commander.test.ts b/test/abilities/commander.test.ts similarity index 100% rename from src/test/abilities/commander.test.ts rename to test/abilities/commander.test.ts diff --git a/src/test/abilities/competitive.test.ts b/test/abilities/competitive.test.ts similarity index 100% rename from src/test/abilities/competitive.test.ts rename to test/abilities/competitive.test.ts diff --git a/src/test/abilities/contrary.test.ts b/test/abilities/contrary.test.ts similarity index 100% rename from src/test/abilities/contrary.test.ts rename to test/abilities/contrary.test.ts diff --git a/src/test/abilities/corrosion.test.ts b/test/abilities/corrosion.test.ts similarity index 100% rename from src/test/abilities/corrosion.test.ts rename to test/abilities/corrosion.test.ts diff --git a/src/test/abilities/costar.test.ts b/test/abilities/costar.test.ts similarity index 100% rename from src/test/abilities/costar.test.ts rename to test/abilities/costar.test.ts diff --git a/src/test/abilities/dancer.test.ts b/test/abilities/dancer.test.ts similarity index 100% rename from src/test/abilities/dancer.test.ts rename to test/abilities/dancer.test.ts diff --git a/src/test/abilities/defiant.test.ts b/test/abilities/defiant.test.ts similarity index 100% rename from src/test/abilities/defiant.test.ts rename to test/abilities/defiant.test.ts diff --git a/src/test/abilities/desolate-land.test.ts b/test/abilities/desolate-land.test.ts similarity index 100% rename from src/test/abilities/desolate-land.test.ts rename to test/abilities/desolate-land.test.ts diff --git a/src/test/abilities/disguise.test.ts b/test/abilities/disguise.test.ts similarity index 100% rename from src/test/abilities/disguise.test.ts rename to test/abilities/disguise.test.ts diff --git a/src/test/abilities/dry_skin.test.ts b/test/abilities/dry_skin.test.ts similarity index 100% rename from src/test/abilities/dry_skin.test.ts rename to test/abilities/dry_skin.test.ts diff --git a/src/test/abilities/early_bird.test.ts b/test/abilities/early_bird.test.ts similarity index 100% rename from src/test/abilities/early_bird.test.ts rename to test/abilities/early_bird.test.ts diff --git a/src/test/abilities/flash_fire.test.ts b/test/abilities/flash_fire.test.ts similarity index 100% rename from src/test/abilities/flash_fire.test.ts rename to test/abilities/flash_fire.test.ts diff --git a/src/test/abilities/flower_gift.test.ts b/test/abilities/flower_gift.test.ts similarity index 100% rename from src/test/abilities/flower_gift.test.ts rename to test/abilities/flower_gift.test.ts diff --git a/src/test/abilities/forecast.test.ts b/test/abilities/forecast.test.ts similarity index 100% rename from src/test/abilities/forecast.test.ts rename to test/abilities/forecast.test.ts diff --git a/src/test/abilities/friend_guard.test.ts b/test/abilities/friend_guard.test.ts similarity index 100% rename from src/test/abilities/friend_guard.test.ts rename to test/abilities/friend_guard.test.ts diff --git a/src/test/abilities/galvanize.test.ts b/test/abilities/galvanize.test.ts similarity index 100% rename from src/test/abilities/galvanize.test.ts rename to test/abilities/galvanize.test.ts diff --git a/src/test/abilities/good_as_gold.test.ts b/test/abilities/good_as_gold.test.ts similarity index 100% rename from src/test/abilities/good_as_gold.test.ts rename to test/abilities/good_as_gold.test.ts diff --git a/src/test/abilities/gorilla_tactics.test.ts b/test/abilities/gorilla_tactics.test.ts similarity index 100% rename from src/test/abilities/gorilla_tactics.test.ts rename to test/abilities/gorilla_tactics.test.ts diff --git a/src/test/abilities/gulp_missile.test.ts b/test/abilities/gulp_missile.test.ts similarity index 100% rename from src/test/abilities/gulp_missile.test.ts rename to test/abilities/gulp_missile.test.ts diff --git a/src/test/abilities/heatproof.test.ts b/test/abilities/heatproof.test.ts similarity index 100% rename from src/test/abilities/heatproof.test.ts rename to test/abilities/heatproof.test.ts diff --git a/src/test/abilities/honey_gather.test.ts b/test/abilities/honey_gather.test.ts similarity index 100% rename from src/test/abilities/honey_gather.test.ts rename to test/abilities/honey_gather.test.ts diff --git a/src/test/abilities/hustle.test.ts b/test/abilities/hustle.test.ts similarity index 100% rename from src/test/abilities/hustle.test.ts rename to test/abilities/hustle.test.ts diff --git a/src/test/abilities/hyper_cutter.test.ts b/test/abilities/hyper_cutter.test.ts similarity index 100% rename from src/test/abilities/hyper_cutter.test.ts rename to test/abilities/hyper_cutter.test.ts diff --git a/src/test/abilities/ice_face.test.ts b/test/abilities/ice_face.test.ts similarity index 100% rename from src/test/abilities/ice_face.test.ts rename to test/abilities/ice_face.test.ts diff --git a/src/test/abilities/illuminate.test.ts b/test/abilities/illuminate.test.ts similarity index 100% rename from src/test/abilities/illuminate.test.ts rename to test/abilities/illuminate.test.ts diff --git a/src/test/abilities/imposter.test.ts b/test/abilities/imposter.test.ts similarity index 98% rename from src/test/abilities/imposter.test.ts rename to test/abilities/imposter.test.ts index 3445b3b322c..f809df0c91d 100644 --- a/src/test/abilities/imposter.test.ts +++ b/test/abilities/imposter.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/abilities/infiltrator.test.ts b/test/abilities/infiltrator.test.ts similarity index 100% rename from src/test/abilities/infiltrator.test.ts rename to test/abilities/infiltrator.test.ts diff --git a/src/test/abilities/intimidate.test.ts b/test/abilities/intimidate.test.ts similarity index 100% rename from src/test/abilities/intimidate.test.ts rename to test/abilities/intimidate.test.ts diff --git a/src/test/abilities/intrepid_sword.test.ts b/test/abilities/intrepid_sword.test.ts similarity index 100% rename from src/test/abilities/intrepid_sword.test.ts rename to test/abilities/intrepid_sword.test.ts diff --git a/src/test/abilities/libero.test.ts b/test/abilities/libero.test.ts similarity index 100% rename from src/test/abilities/libero.test.ts rename to test/abilities/libero.test.ts diff --git a/src/test/abilities/magic_bounce.test.ts b/test/abilities/magic_bounce.test.ts similarity index 100% rename from src/test/abilities/magic_bounce.test.ts rename to test/abilities/magic_bounce.test.ts diff --git a/src/test/abilities/magic_guard.test.ts b/test/abilities/magic_guard.test.ts similarity index 100% rename from src/test/abilities/magic_guard.test.ts rename to test/abilities/magic_guard.test.ts diff --git a/src/test/abilities/mimicry.test.ts b/test/abilities/mimicry.test.ts similarity index 100% rename from src/test/abilities/mimicry.test.ts rename to test/abilities/mimicry.test.ts diff --git a/src/test/abilities/mirror_armor.test.ts b/test/abilities/mirror_armor.test.ts similarity index 100% rename from src/test/abilities/mirror_armor.test.ts rename to test/abilities/mirror_armor.test.ts diff --git a/src/test/abilities/moody.test.ts b/test/abilities/moody.test.ts similarity index 100% rename from src/test/abilities/moody.test.ts rename to test/abilities/moody.test.ts diff --git a/src/test/abilities/moxie.test.ts b/test/abilities/moxie.test.ts similarity index 100% rename from src/test/abilities/moxie.test.ts rename to test/abilities/moxie.test.ts diff --git a/src/test/abilities/mycelium_might.test.ts b/test/abilities/mycelium_might.test.ts similarity index 100% rename from src/test/abilities/mycelium_might.test.ts rename to test/abilities/mycelium_might.test.ts diff --git a/src/test/abilities/no_guard.test.ts b/test/abilities/no_guard.test.ts similarity index 100% rename from src/test/abilities/no_guard.test.ts rename to test/abilities/no_guard.test.ts diff --git a/src/test/abilities/parental_bond.test.ts b/test/abilities/parental_bond.test.ts similarity index 100% rename from src/test/abilities/parental_bond.test.ts rename to test/abilities/parental_bond.test.ts diff --git a/src/test/abilities/pastel_veil.test.ts b/test/abilities/pastel_veil.test.ts similarity index 100% rename from src/test/abilities/pastel_veil.test.ts rename to test/abilities/pastel_veil.test.ts diff --git a/src/test/abilities/perish_body.test.ts b/test/abilities/perish_body.test.ts similarity index 100% rename from src/test/abilities/perish_body.test.ts rename to test/abilities/perish_body.test.ts diff --git a/src/test/abilities/power_construct.test.ts b/test/abilities/power_construct.test.ts similarity index 100% rename from src/test/abilities/power_construct.test.ts rename to test/abilities/power_construct.test.ts diff --git a/src/test/abilities/power_spot.test.ts b/test/abilities/power_spot.test.ts similarity index 100% rename from src/test/abilities/power_spot.test.ts rename to test/abilities/power_spot.test.ts diff --git a/src/test/abilities/protean.test.ts b/test/abilities/protean.test.ts similarity index 100% rename from src/test/abilities/protean.test.ts rename to test/abilities/protean.test.ts diff --git a/src/test/abilities/protosynthesis.test.ts b/test/abilities/protosynthesis.test.ts similarity index 100% rename from src/test/abilities/protosynthesis.test.ts rename to test/abilities/protosynthesis.test.ts diff --git a/src/test/abilities/quick_draw.test.ts b/test/abilities/quick_draw.test.ts similarity index 100% rename from src/test/abilities/quick_draw.test.ts rename to test/abilities/quick_draw.test.ts diff --git a/src/test/abilities/sand_spit.test.ts b/test/abilities/sand_spit.test.ts similarity index 100% rename from src/test/abilities/sand_spit.test.ts rename to test/abilities/sand_spit.test.ts diff --git a/src/test/abilities/sand_veil.test.ts b/test/abilities/sand_veil.test.ts similarity index 100% rename from src/test/abilities/sand_veil.test.ts rename to test/abilities/sand_veil.test.ts diff --git a/src/test/abilities/sap_sipper.test.ts b/test/abilities/sap_sipper.test.ts similarity index 100% rename from src/test/abilities/sap_sipper.test.ts rename to test/abilities/sap_sipper.test.ts diff --git a/src/test/abilities/schooling.test.ts b/test/abilities/schooling.test.ts similarity index 100% rename from src/test/abilities/schooling.test.ts rename to test/abilities/schooling.test.ts diff --git a/src/test/abilities/screen_cleaner.test.ts b/test/abilities/screen_cleaner.test.ts similarity index 100% rename from src/test/abilities/screen_cleaner.test.ts rename to test/abilities/screen_cleaner.test.ts diff --git a/src/test/abilities/seed_sower.test.ts b/test/abilities/seed_sower.test.ts similarity index 100% rename from src/test/abilities/seed_sower.test.ts rename to test/abilities/seed_sower.test.ts diff --git a/src/test/abilities/serene_grace.test.ts b/test/abilities/serene_grace.test.ts similarity index 100% rename from src/test/abilities/serene_grace.test.ts rename to test/abilities/serene_grace.test.ts diff --git a/src/test/abilities/sheer_force.test.ts b/test/abilities/sheer_force.test.ts similarity index 100% rename from src/test/abilities/sheer_force.test.ts rename to test/abilities/sheer_force.test.ts diff --git a/src/test/abilities/shield_dust.test.ts b/test/abilities/shield_dust.test.ts similarity index 100% rename from src/test/abilities/shield_dust.test.ts rename to test/abilities/shield_dust.test.ts diff --git a/src/test/abilities/shields_down.test.ts b/test/abilities/shields_down.test.ts similarity index 100% rename from src/test/abilities/shields_down.test.ts rename to test/abilities/shields_down.test.ts diff --git a/src/test/abilities/simple.test.ts b/test/abilities/simple.test.ts similarity index 100% rename from src/test/abilities/simple.test.ts rename to test/abilities/simple.test.ts diff --git a/src/test/abilities/speed_boost.test.ts b/test/abilities/speed_boost.test.ts similarity index 100% rename from src/test/abilities/speed_boost.test.ts rename to test/abilities/speed_boost.test.ts diff --git a/src/test/abilities/stakeout.test.ts b/test/abilities/stakeout.test.ts similarity index 100% rename from src/test/abilities/stakeout.test.ts rename to test/abilities/stakeout.test.ts diff --git a/src/test/abilities/stall.test.ts b/test/abilities/stall.test.ts similarity index 100% rename from src/test/abilities/stall.test.ts rename to test/abilities/stall.test.ts diff --git a/src/test/abilities/steely_spirit.test.ts b/test/abilities/steely_spirit.test.ts similarity index 100% rename from src/test/abilities/steely_spirit.test.ts rename to test/abilities/steely_spirit.test.ts diff --git a/src/test/abilities/sturdy.test.ts b/test/abilities/sturdy.test.ts similarity index 100% rename from src/test/abilities/sturdy.test.ts rename to test/abilities/sturdy.test.ts diff --git a/src/test/abilities/supreme_overlord.test.ts b/test/abilities/supreme_overlord.test.ts similarity index 100% rename from src/test/abilities/supreme_overlord.test.ts rename to test/abilities/supreme_overlord.test.ts diff --git a/src/test/abilities/sweet_veil.test.ts b/test/abilities/sweet_veil.test.ts similarity index 100% rename from src/test/abilities/sweet_veil.test.ts rename to test/abilities/sweet_veil.test.ts diff --git a/src/test/abilities/synchronize.test.ts b/test/abilities/synchronize.test.ts similarity index 100% rename from src/test/abilities/synchronize.test.ts rename to test/abilities/synchronize.test.ts diff --git a/src/test/abilities/tera_shell.test.ts b/test/abilities/tera_shell.test.ts similarity index 100% rename from src/test/abilities/tera_shell.test.ts rename to test/abilities/tera_shell.test.ts diff --git a/src/test/abilities/unburden.test.ts b/test/abilities/unburden.test.ts similarity index 100% rename from src/test/abilities/unburden.test.ts rename to test/abilities/unburden.test.ts diff --git a/src/test/abilities/unseen_fist.test.ts b/test/abilities/unseen_fist.test.ts similarity index 100% rename from src/test/abilities/unseen_fist.test.ts rename to test/abilities/unseen_fist.test.ts diff --git a/src/test/abilities/volt_absorb.test.ts b/test/abilities/volt_absorb.test.ts similarity index 100% rename from src/test/abilities/volt_absorb.test.ts rename to test/abilities/volt_absorb.test.ts diff --git a/src/test/abilities/wimp_out.test.ts b/test/abilities/wimp_out.test.ts similarity index 99% rename from src/test/abilities/wimp_out.test.ts rename to test/abilities/wimp_out.test.ts index bff68b54c75..283039c1fc4 100644 --- a/src/test/abilities/wimp_out.test.ts +++ b/test/abilities/wimp_out.test.ts @@ -1,7 +1,7 @@ import { BattlerIndex } from "#app/battle"; import { ArenaTagSide } from "#app/data/arena-tag"; import { allMoves } from "#app/data/move"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Abilities } from "#enums/abilities"; import { ArenaTagType } from "#enums/arena-tag-type"; import { BattlerTagType } from "#enums/battler-tag-type"; diff --git a/src/test/abilities/wind_power.test.ts b/test/abilities/wind_power.test.ts similarity index 100% rename from src/test/abilities/wind_power.test.ts rename to test/abilities/wind_power.test.ts diff --git a/src/test/abilities/wind_rider.test.ts b/test/abilities/wind_rider.test.ts similarity index 100% rename from src/test/abilities/wind_rider.test.ts rename to test/abilities/wind_rider.test.ts diff --git a/src/test/abilities/wonder_skin.test.ts b/test/abilities/wonder_skin.test.ts similarity index 100% rename from src/test/abilities/wonder_skin.test.ts rename to test/abilities/wonder_skin.test.ts diff --git a/src/test/abilities/zen_mode.test.ts b/test/abilities/zen_mode.test.ts similarity index 100% rename from src/test/abilities/zen_mode.test.ts rename to test/abilities/zen_mode.test.ts diff --git a/src/test/abilities/zero_to_hero.test.ts b/test/abilities/zero_to_hero.test.ts similarity index 100% rename from src/test/abilities/zero_to_hero.test.ts rename to test/abilities/zero_to_hero.test.ts diff --git a/src/test/account.test.ts b/test/account.test.ts similarity index 99% rename from src/test/account.test.ts rename to test/account.test.ts index 0f49014c377..099564ce7a8 100644 --- a/src/test/account.test.ts +++ b/test/account.test.ts @@ -1,7 +1,7 @@ import * as battleScene from "#app/battle-scene"; import { pokerogueApi } from "#app/plugins/api/pokerogue-api"; import { describe, expect, it, vi } from "vitest"; -import { initLoggedInUser, loggedInUser, updateUserInfo } from "../account"; +import { initLoggedInUser, loggedInUser, updateUserInfo } from "#app/account"; describe("account", () => { describe("initLoggedInUser", () => { diff --git a/src/test/achievements/achievement.test.ts b/test/achievements/achievement.test.ts similarity index 99% rename from src/test/achievements/achievement.test.ts rename to test/achievements/achievement.test.ts index 2d1cc50603e..0ddbebf0f6b 100644 --- a/src/test/achievements/achievement.test.ts +++ b/test/achievements/achievement.test.ts @@ -4,7 +4,7 @@ import { NumberHolder } from "#app/utils"; import GameManager from "#test/utils/gameManager"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import BattleScene from "../../battle-scene"; +import BattleScene from "#app/battle-scene"; describe("check some Achievement related stuff", () => { it ("should check Achievement creation", () => { diff --git a/src/test/arena/arena_gravity.test.ts b/test/arena/arena_gravity.test.ts similarity index 100% rename from src/test/arena/arena_gravity.test.ts rename to test/arena/arena_gravity.test.ts diff --git a/src/test/arena/grassy_terrain.test.ts b/test/arena/grassy_terrain.test.ts similarity index 100% rename from src/test/arena/grassy_terrain.test.ts rename to test/arena/grassy_terrain.test.ts diff --git a/src/test/arena/weather_fog.test.ts b/test/arena/weather_fog.test.ts similarity index 100% rename from src/test/arena/weather_fog.test.ts rename to test/arena/weather_fog.test.ts diff --git a/src/test/arena/weather_hail.test.ts b/test/arena/weather_hail.test.ts similarity index 100% rename from src/test/arena/weather_hail.test.ts rename to test/arena/weather_hail.test.ts diff --git a/src/test/arena/weather_sandstorm.test.ts b/test/arena/weather_sandstorm.test.ts similarity index 100% rename from src/test/arena/weather_sandstorm.test.ts rename to test/arena/weather_sandstorm.test.ts diff --git a/src/test/arena/weather_strong_winds.test.ts b/test/arena/weather_strong_winds.test.ts similarity index 100% rename from src/test/arena/weather_strong_winds.test.ts rename to test/arena/weather_strong_winds.test.ts diff --git a/src/test/battle-scene.test.ts b/test/battle-scene.test.ts similarity index 100% rename from src/test/battle-scene.test.ts rename to test/battle-scene.test.ts diff --git a/src/test/battle/battle-order.test.ts b/test/battle/battle-order.test.ts similarity index 100% rename from src/test/battle/battle-order.test.ts rename to test/battle/battle-order.test.ts diff --git a/src/test/battle/battle.test.ts b/test/battle/battle.test.ts similarity index 99% rename from src/test/battle/battle.test.ts rename to test/battle/battle.test.ts index bd84cb2fd3b..8d6f7e0e904 100644 --- a/src/test/battle/battle.test.ts +++ b/test/battle/battle.test.ts @@ -16,8 +16,8 @@ import { SwitchPhase } from "#app/phases/switch-phase"; import { TitlePhase } from "#app/phases/title-phase"; import { TurnInitPhase } from "#app/phases/turn-init-phase"; import { VictoryPhase } from "#app/phases/victory-phase"; -import GameManager from "#app/test/utils/gameManager"; -import { generateStarter } from "#app/test/utils/gameManagerUtils"; +import GameManager from "#test/utils/gameManager"; +import { generateStarter } from "#test/utils/gameManagerUtils"; import { Mode } from "#app/ui/ui"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/battle/damage_calculation.test.ts b/test/battle/damage_calculation.test.ts similarity index 100% rename from src/test/battle/damage_calculation.test.ts rename to test/battle/damage_calculation.test.ts diff --git a/src/test/battle/double_battle.test.ts b/test/battle/double_battle.test.ts similarity index 100% rename from src/test/battle/double_battle.test.ts rename to test/battle/double_battle.test.ts diff --git a/src/test/battle/inverse_battle.test.ts b/test/battle/inverse_battle.test.ts similarity index 100% rename from src/test/battle/inverse_battle.test.ts rename to test/battle/inverse_battle.test.ts diff --git a/src/test/battle/special_battle.test.ts b/test/battle/special_battle.test.ts similarity index 100% rename from src/test/battle/special_battle.test.ts rename to test/battle/special_battle.test.ts diff --git a/src/test/battlerTags/octolock.test.ts b/test/battlerTags/octolock.test.ts similarity index 100% rename from src/test/battlerTags/octolock.test.ts rename to test/battlerTags/octolock.test.ts diff --git a/src/test/battlerTags/stockpiling.test.ts b/test/battlerTags/stockpiling.test.ts similarity index 100% rename from src/test/battlerTags/stockpiling.test.ts rename to test/battlerTags/stockpiling.test.ts diff --git a/src/test/battlerTags/substitute.test.ts b/test/battlerTags/substitute.test.ts similarity index 100% rename from src/test/battlerTags/substitute.test.ts rename to test/battlerTags/substitute.test.ts diff --git a/src/test/boss-pokemon.test.ts b/test/boss-pokemon.test.ts similarity index 100% rename from src/test/boss-pokemon.test.ts rename to test/boss-pokemon.test.ts diff --git a/src/test/daily_mode.test.ts b/test/daily_mode.test.ts similarity index 98% rename from src/test/daily_mode.test.ts rename to test/daily_mode.test.ts index 3e70cc2d8a7..0b4c41c7bd4 100644 --- a/src/test/daily_mode.test.ts +++ b/test/daily_mode.test.ts @@ -6,7 +6,7 @@ import ModifierSelectUiHandler from "#app/ui/modifier-select-ui-handler"; import { Species } from "#enums/species"; import { Mode } from "#app/ui/ui"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; //const TIMEOUT = 20 * 1000; diff --git a/src/test/data/splash_messages.test.ts b/test/data/splash_messages.test.ts similarity index 100% rename from src/test/data/splash_messages.test.ts rename to test/data/splash_messages.test.ts diff --git a/src/test/data/status_effect.test.ts b/test/data/status_effect.test.ts similarity index 100% rename from src/test/data/status_effect.test.ts rename to test/data/status_effect.test.ts diff --git a/src/test/eggs/egg.test.ts b/test/eggs/egg.test.ts similarity index 100% rename from src/test/eggs/egg.test.ts rename to test/eggs/egg.test.ts diff --git a/src/test/eggs/manaphy-egg.test.ts b/test/eggs/manaphy-egg.test.ts similarity index 100% rename from src/test/eggs/manaphy-egg.test.ts rename to test/eggs/manaphy-egg.test.ts diff --git a/src/test/endless_boss.test.ts b/test/endless_boss.test.ts similarity index 100% rename from src/test/endless_boss.test.ts rename to test/endless_boss.test.ts diff --git a/src/test/enemy_command.test.ts b/test/enemy_command.test.ts similarity index 100% rename from src/test/enemy_command.test.ts rename to test/enemy_command.test.ts diff --git a/src/test/escape-calculations.test.ts b/test/escape-calculations.test.ts similarity index 100% rename from src/test/escape-calculations.test.ts rename to test/escape-calculations.test.ts diff --git a/src/test/evolution.test.ts b/test/evolution.test.ts similarity index 100% rename from src/test/evolution.test.ts rename to test/evolution.test.ts diff --git a/src/test/field/pokemon.test.ts b/test/field/pokemon.test.ts similarity index 99% rename from src/test/field/pokemon.test.ts rename to test/field/pokemon.test.ts index 0c282b44f49..f50acd74c4e 100644 --- a/src/test/field/pokemon.test.ts +++ b/test/field/pokemon.test.ts @@ -1,6 +1,6 @@ import { Species } from "#app/enums/species"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { PokeballType } from "#enums/pokeball"; import type BattleScene from "#app/battle-scene"; import { Moves } from "#app/enums/moves"; diff --git a/src/test/final_boss.test.ts b/test/final_boss.test.ts similarity index 100% rename from src/test/final_boss.test.ts rename to test/final_boss.test.ts diff --git a/src/test/fontFace.setup.ts b/test/fontFace.setup.ts similarity index 100% rename from src/test/fontFace.setup.ts rename to test/fontFace.setup.ts diff --git a/src/test/game-mode.test.ts b/test/game-mode.test.ts similarity index 98% rename from src/test/game-mode.test.ts rename to test/game-mode.test.ts index 2c8184a30ef..74dbfb4e96a 100644 --- a/src/test/game-mode.test.ts +++ b/test/game-mode.test.ts @@ -1,7 +1,7 @@ import type { GameMode } from "#app/game-mode"; import { GameModes, getGameMode } from "#app/game-mode"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import * as Utils from "../utils"; +import * as Utils from "#app/utils"; import GameManager from "./utils/gameManager"; describe("game-mode", () => { diff --git a/src/test/imports.test.ts b/test/imports.test.ts similarity index 100% rename from src/test/imports.test.ts rename to test/imports.test.ts diff --git a/src/test/inputs/inputs.test.ts b/test/inputs/inputs.test.ts similarity index 100% rename from src/test/inputs/inputs.test.ts rename to test/inputs/inputs.test.ts diff --git a/src/test/internals.test.ts b/test/internals.test.ts similarity index 100% rename from src/test/internals.test.ts rename to test/internals.test.ts diff --git a/src/test/items/dire_hit.test.ts b/test/items/dire_hit.test.ts similarity index 100% rename from src/test/items/dire_hit.test.ts rename to test/items/dire_hit.test.ts diff --git a/src/test/items/double_battle_chance_booster.test.ts b/test/items/double_battle_chance_booster.test.ts similarity index 100% rename from src/test/items/double_battle_chance_booster.test.ts rename to test/items/double_battle_chance_booster.test.ts diff --git a/src/test/items/eviolite.test.ts b/test/items/eviolite.test.ts similarity index 100% rename from src/test/items/eviolite.test.ts rename to test/items/eviolite.test.ts diff --git a/src/test/items/exp_booster.test.ts b/test/items/exp_booster.test.ts similarity index 100% rename from src/test/items/exp_booster.test.ts rename to test/items/exp_booster.test.ts diff --git a/src/test/items/grip_claw.test.ts b/test/items/grip_claw.test.ts similarity index 100% rename from src/test/items/grip_claw.test.ts rename to test/items/grip_claw.test.ts diff --git a/src/test/items/leek.test.ts b/test/items/leek.test.ts similarity index 100% rename from src/test/items/leek.test.ts rename to test/items/leek.test.ts diff --git a/src/test/items/leftovers.test.ts b/test/items/leftovers.test.ts similarity index 100% rename from src/test/items/leftovers.test.ts rename to test/items/leftovers.test.ts diff --git a/src/test/items/light_ball.test.ts b/test/items/light_ball.test.ts similarity index 100% rename from src/test/items/light_ball.test.ts rename to test/items/light_ball.test.ts diff --git a/src/test/items/lock_capsule.test.ts b/test/items/lock_capsule.test.ts similarity index 100% rename from src/test/items/lock_capsule.test.ts rename to test/items/lock_capsule.test.ts diff --git a/src/test/items/metal_powder.test.ts b/test/items/metal_powder.test.ts similarity index 100% rename from src/test/items/metal_powder.test.ts rename to test/items/metal_powder.test.ts diff --git a/src/test/items/multi_lens.test.ts b/test/items/multi_lens.test.ts similarity index 100% rename from src/test/items/multi_lens.test.ts rename to test/items/multi_lens.test.ts diff --git a/src/test/items/quick_powder.test.ts b/test/items/quick_powder.test.ts similarity index 100% rename from src/test/items/quick_powder.test.ts rename to test/items/quick_powder.test.ts diff --git a/src/test/items/scope_lens.test.ts b/test/items/scope_lens.test.ts similarity index 100% rename from src/test/items/scope_lens.test.ts rename to test/items/scope_lens.test.ts diff --git a/src/test/items/temp_stat_stage_booster.test.ts b/test/items/temp_stat_stage_booster.test.ts similarity index 100% rename from src/test/items/temp_stat_stage_booster.test.ts rename to test/items/temp_stat_stage_booster.test.ts diff --git a/src/test/items/thick_club.test.ts b/test/items/thick_club.test.ts similarity index 100% rename from src/test/items/thick_club.test.ts rename to test/items/thick_club.test.ts diff --git a/src/test/items/toxic_orb.test.ts b/test/items/toxic_orb.test.ts similarity index 100% rename from src/test/items/toxic_orb.test.ts rename to test/items/toxic_orb.test.ts diff --git a/src/test/misc.test.ts b/test/misc.test.ts similarity index 100% rename from src/test/misc.test.ts rename to test/misc.test.ts diff --git a/src/test/moves/after_you.test.ts b/test/moves/after_you.test.ts similarity index 100% rename from src/test/moves/after_you.test.ts rename to test/moves/after_you.test.ts diff --git a/src/test/moves/alluring_voice.test.ts b/test/moves/alluring_voice.test.ts similarity index 100% rename from src/test/moves/alluring_voice.test.ts rename to test/moves/alluring_voice.test.ts diff --git a/src/test/moves/aromatherapy.test.ts b/test/moves/aromatherapy.test.ts similarity index 100% rename from src/test/moves/aromatherapy.test.ts rename to test/moves/aromatherapy.test.ts diff --git a/src/test/moves/assist.test.ts b/test/moves/assist.test.ts similarity index 100% rename from src/test/moves/assist.test.ts rename to test/moves/assist.test.ts diff --git a/src/test/moves/astonish.test.ts b/test/moves/astonish.test.ts similarity index 100% rename from src/test/moves/astonish.test.ts rename to test/moves/astonish.test.ts diff --git a/src/test/moves/aurora_veil.test.ts b/test/moves/aurora_veil.test.ts similarity index 100% rename from src/test/moves/aurora_veil.test.ts rename to test/moves/aurora_veil.test.ts diff --git a/src/test/moves/autotomize.test.ts b/test/moves/autotomize.test.ts similarity index 100% rename from src/test/moves/autotomize.test.ts rename to test/moves/autotomize.test.ts diff --git a/src/test/moves/baddy_bad.test.ts b/test/moves/baddy_bad.test.ts similarity index 100% rename from src/test/moves/baddy_bad.test.ts rename to test/moves/baddy_bad.test.ts diff --git a/src/test/moves/baneful_bunker.test.ts b/test/moves/baneful_bunker.test.ts similarity index 98% rename from src/test/moves/baneful_bunker.test.ts rename to test/moves/baneful_bunker.test.ts index a0fc0f21ee2..d72a44e83e9 100644 --- a/src/test/moves/baneful_bunker.test.ts +++ b/test/moves/baneful_bunker.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/baton_pass.test.ts b/test/moves/baton_pass.test.ts similarity index 98% rename from src/test/moves/baton_pass.test.ts rename to test/moves/baton_pass.test.ts index 52e4c3ec016..8cd676509e2 100644 --- a/src/test/moves/baton_pass.test.ts +++ b/test/moves/baton_pass.test.ts @@ -1,5 +1,5 @@ import { BattlerIndex } from "#app/battle"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Abilities } from "#enums/abilities"; import { BattlerTagType } from "#enums/battler-tag-type"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/beak_blast.test.ts b/test/moves/beak_blast.test.ts similarity index 100% rename from src/test/moves/beak_blast.test.ts rename to test/moves/beak_blast.test.ts diff --git a/src/test/moves/beat_up.test.ts b/test/moves/beat_up.test.ts similarity index 100% rename from src/test/moves/beat_up.test.ts rename to test/moves/beat_up.test.ts diff --git a/src/test/moves/belly_drum.test.ts b/test/moves/belly_drum.test.ts similarity index 100% rename from src/test/moves/belly_drum.test.ts rename to test/moves/belly_drum.test.ts diff --git a/src/test/moves/burning_jealousy.test.ts b/test/moves/burning_jealousy.test.ts similarity index 100% rename from src/test/moves/burning_jealousy.test.ts rename to test/moves/burning_jealousy.test.ts diff --git a/src/test/moves/camouflage.test.ts b/test/moves/camouflage.test.ts similarity index 100% rename from src/test/moves/camouflage.test.ts rename to test/moves/camouflage.test.ts diff --git a/src/test/moves/ceaseless_edge.test.ts b/test/moves/ceaseless_edge.test.ts similarity index 100% rename from src/test/moves/ceaseless_edge.test.ts rename to test/moves/ceaseless_edge.test.ts diff --git a/src/test/moves/chilly_reception.test.ts b/test/moves/chilly_reception.test.ts similarity index 100% rename from src/test/moves/chilly_reception.test.ts rename to test/moves/chilly_reception.test.ts diff --git a/src/test/moves/chloroblast.test.ts b/test/moves/chloroblast.test.ts similarity index 100% rename from src/test/moves/chloroblast.test.ts rename to test/moves/chloroblast.test.ts diff --git a/src/test/moves/clangorous_soul.test.ts b/test/moves/clangorous_soul.test.ts similarity index 100% rename from src/test/moves/clangorous_soul.test.ts rename to test/moves/clangorous_soul.test.ts diff --git a/src/test/moves/copycat.test.ts b/test/moves/copycat.test.ts similarity index 100% rename from src/test/moves/copycat.test.ts rename to test/moves/copycat.test.ts diff --git a/src/test/moves/crafty_shield.test.ts b/test/moves/crafty_shield.test.ts similarity index 98% rename from src/test/moves/crafty_shield.test.ts rename to test/moves/crafty_shield.test.ts index 93dd4a02538..08b04650be9 100644 --- a/src/test/moves/crafty_shield.test.ts +++ b/test/moves/crafty_shield.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/defog.test.ts b/test/moves/defog.test.ts similarity index 100% rename from src/test/moves/defog.test.ts rename to test/moves/defog.test.ts diff --git a/src/test/moves/destiny_bond.test.ts b/test/moves/destiny_bond.test.ts similarity index 100% rename from src/test/moves/destiny_bond.test.ts rename to test/moves/destiny_bond.test.ts diff --git a/src/test/moves/diamond_storm.test.ts b/test/moves/diamond_storm.test.ts similarity index 100% rename from src/test/moves/diamond_storm.test.ts rename to test/moves/diamond_storm.test.ts diff --git a/src/test/moves/dig.test.ts b/test/moves/dig.test.ts similarity index 100% rename from src/test/moves/dig.test.ts rename to test/moves/dig.test.ts diff --git a/src/test/moves/disable.test.ts b/test/moves/disable.test.ts similarity index 100% rename from src/test/moves/disable.test.ts rename to test/moves/disable.test.ts diff --git a/src/test/moves/dive.test.ts b/test/moves/dive.test.ts similarity index 100% rename from src/test/moves/dive.test.ts rename to test/moves/dive.test.ts diff --git a/src/test/moves/double_team.test.ts b/test/moves/double_team.test.ts similarity index 100% rename from src/test/moves/double_team.test.ts rename to test/moves/double_team.test.ts diff --git a/src/test/moves/dragon_cheer.test.ts b/test/moves/dragon_cheer.test.ts similarity index 100% rename from src/test/moves/dragon_cheer.test.ts rename to test/moves/dragon_cheer.test.ts diff --git a/src/test/moves/dragon_rage.test.ts b/test/moves/dragon_rage.test.ts similarity index 100% rename from src/test/moves/dragon_rage.test.ts rename to test/moves/dragon_rage.test.ts diff --git a/src/test/moves/dragon_tail.test.ts b/test/moves/dragon_tail.test.ts similarity index 100% rename from src/test/moves/dragon_tail.test.ts rename to test/moves/dragon_tail.test.ts diff --git a/src/test/moves/dynamax_cannon.test.ts b/test/moves/dynamax_cannon.test.ts similarity index 100% rename from src/test/moves/dynamax_cannon.test.ts rename to test/moves/dynamax_cannon.test.ts diff --git a/src/test/moves/effectiveness.test.ts b/test/moves/effectiveness.test.ts similarity index 100% rename from src/test/moves/effectiveness.test.ts rename to test/moves/effectiveness.test.ts diff --git a/src/test/moves/electrify.test.ts b/test/moves/electrify.test.ts similarity index 100% rename from src/test/moves/electrify.test.ts rename to test/moves/electrify.test.ts diff --git a/src/test/moves/electro_shot.test.ts b/test/moves/electro_shot.test.ts similarity index 100% rename from src/test/moves/electro_shot.test.ts rename to test/moves/electro_shot.test.ts diff --git a/src/test/moves/encore.test.ts b/test/moves/encore.test.ts similarity index 100% rename from src/test/moves/encore.test.ts rename to test/moves/encore.test.ts diff --git a/src/test/moves/endure.test.ts b/test/moves/endure.test.ts similarity index 100% rename from src/test/moves/endure.test.ts rename to test/moves/endure.test.ts diff --git a/src/test/moves/fairy_lock.test.ts b/test/moves/fairy_lock.test.ts similarity index 100% rename from src/test/moves/fairy_lock.test.ts rename to test/moves/fairy_lock.test.ts diff --git a/src/test/moves/fake_out.test.ts b/test/moves/fake_out.test.ts similarity index 98% rename from src/test/moves/fake_out.test.ts rename to test/moves/fake_out.test.ts index f20b6db3a13..2370f82de5b 100644 --- a/src/test/moves/fake_out.test.ts +++ b/test/moves/fake_out.test.ts @@ -1,4 +1,4 @@ -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Moves } from "#enums/moves"; import { Species } from "#enums/species"; import Phaser from "phaser"; diff --git a/src/test/moves/fell_stinger.test.ts b/test/moves/fell_stinger.test.ts similarity index 99% rename from src/test/moves/fell_stinger.test.ts rename to test/moves/fell_stinger.test.ts index a901ddced44..ec9f619aae7 100644 --- a/src/test/moves/fell_stinger.test.ts +++ b/test/moves/fell_stinger.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/fillet_away.test.ts b/test/moves/fillet_away.test.ts similarity index 100% rename from src/test/moves/fillet_away.test.ts rename to test/moves/fillet_away.test.ts diff --git a/src/test/moves/fissure.test.ts b/test/moves/fissure.test.ts similarity index 100% rename from src/test/moves/fissure.test.ts rename to test/moves/fissure.test.ts diff --git a/src/test/moves/flame_burst.test.ts b/test/moves/flame_burst.test.ts similarity index 100% rename from src/test/moves/flame_burst.test.ts rename to test/moves/flame_burst.test.ts diff --git a/src/test/moves/flower_shield.test.ts b/test/moves/flower_shield.test.ts similarity index 100% rename from src/test/moves/flower_shield.test.ts rename to test/moves/flower_shield.test.ts diff --git a/src/test/moves/fly.test.ts b/test/moves/fly.test.ts similarity index 100% rename from src/test/moves/fly.test.ts rename to test/moves/fly.test.ts diff --git a/src/test/moves/focus_punch.test.ts b/test/moves/focus_punch.test.ts similarity index 100% rename from src/test/moves/focus_punch.test.ts rename to test/moves/focus_punch.test.ts diff --git a/src/test/moves/follow_me.test.ts b/test/moves/follow_me.test.ts similarity index 100% rename from src/test/moves/follow_me.test.ts rename to test/moves/follow_me.test.ts diff --git a/src/test/moves/foresight.test.ts b/test/moves/foresight.test.ts similarity index 100% rename from src/test/moves/foresight.test.ts rename to test/moves/foresight.test.ts diff --git a/src/test/moves/forests_curse.test.ts b/test/moves/forests_curse.test.ts similarity index 100% rename from src/test/moves/forests_curse.test.ts rename to test/moves/forests_curse.test.ts diff --git a/src/test/moves/freeze_dry.test.ts b/test/moves/freeze_dry.test.ts similarity index 100% rename from src/test/moves/freeze_dry.test.ts rename to test/moves/freeze_dry.test.ts diff --git a/src/test/moves/freezy_frost.test.ts b/test/moves/freezy_frost.test.ts similarity index 100% rename from src/test/moves/freezy_frost.test.ts rename to test/moves/freezy_frost.test.ts diff --git a/src/test/moves/fusion_bolt.test.ts b/test/moves/fusion_bolt.test.ts similarity index 100% rename from src/test/moves/fusion_bolt.test.ts rename to test/moves/fusion_bolt.test.ts diff --git a/src/test/moves/fusion_flare.test.ts b/test/moves/fusion_flare.test.ts similarity index 100% rename from src/test/moves/fusion_flare.test.ts rename to test/moves/fusion_flare.test.ts diff --git a/src/test/moves/fusion_flare_bolt.test.ts b/test/moves/fusion_flare_bolt.test.ts similarity index 100% rename from src/test/moves/fusion_flare_bolt.test.ts rename to test/moves/fusion_flare_bolt.test.ts diff --git a/src/test/moves/future_sight.test.ts b/test/moves/future_sight.test.ts similarity index 100% rename from src/test/moves/future_sight.test.ts rename to test/moves/future_sight.test.ts diff --git a/src/test/moves/gastro_acid.test.ts b/test/moves/gastro_acid.test.ts similarity index 100% rename from src/test/moves/gastro_acid.test.ts rename to test/moves/gastro_acid.test.ts diff --git a/src/test/moves/geomancy.test.ts b/test/moves/geomancy.test.ts similarity index 100% rename from src/test/moves/geomancy.test.ts rename to test/moves/geomancy.test.ts diff --git a/src/test/moves/gigaton_hammer.test.ts b/test/moves/gigaton_hammer.test.ts similarity index 97% rename from src/test/moves/gigaton_hammer.test.ts rename to test/moves/gigaton_hammer.test.ts index f54700fe660..c95e861d5c4 100644 --- a/src/test/moves/gigaton_hammer.test.ts +++ b/test/moves/gigaton_hammer.test.ts @@ -1,5 +1,5 @@ import { BattlerIndex } from "#app/battle"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Moves } from "#enums/moves"; import { Species } from "#enums/species"; import Phaser from "phaser"; diff --git a/src/test/moves/glaive_rush.test.ts b/test/moves/glaive_rush.test.ts similarity index 100% rename from src/test/moves/glaive_rush.test.ts rename to test/moves/glaive_rush.test.ts diff --git a/src/test/moves/growth.test.ts b/test/moves/growth.test.ts similarity index 100% rename from src/test/moves/growth.test.ts rename to test/moves/growth.test.ts diff --git a/src/test/moves/grudge.test.ts b/test/moves/grudge.test.ts similarity index 100% rename from src/test/moves/grudge.test.ts rename to test/moves/grudge.test.ts diff --git a/src/test/moves/guard_split.test.ts b/test/moves/guard_split.test.ts similarity index 97% rename from src/test/moves/guard_split.test.ts rename to test/moves/guard_split.test.ts index 519f347b920..ab9a04fa905 100644 --- a/src/test/moves/guard_split.test.ts +++ b/test/moves/guard_split.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/guard_swap.test.ts b/test/moves/guard_swap.test.ts similarity index 97% rename from src/test/moves/guard_swap.test.ts rename to test/moves/guard_swap.test.ts index 99769b32899..070b38a6c8d 100644 --- a/src/test/moves/guard_swap.test.ts +++ b/test/moves/guard_swap.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/hard_press.test.ts b/test/moves/hard_press.test.ts similarity index 100% rename from src/test/moves/hard_press.test.ts rename to test/moves/hard_press.test.ts diff --git a/src/test/moves/haze.test.ts b/test/moves/haze.test.ts similarity index 100% rename from src/test/moves/haze.test.ts rename to test/moves/haze.test.ts diff --git a/src/test/moves/heal_bell.test.ts b/test/moves/heal_bell.test.ts similarity index 100% rename from src/test/moves/heal_bell.test.ts rename to test/moves/heal_bell.test.ts diff --git a/src/test/moves/heal_block.test.ts b/test/moves/heal_block.test.ts similarity index 98% rename from src/test/moves/heal_block.test.ts rename to test/moves/heal_block.test.ts index 25f2076ff3e..6b7df1ee67c 100644 --- a/src/test/moves/heal_block.test.ts +++ b/test/moves/heal_block.test.ts @@ -1,6 +1,6 @@ import { BattlerIndex } from "#app/battle"; import { ArenaTagSide } from "#app/data/arena-tag"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Abilities } from "#enums/abilities"; import { ArenaTagType } from "#enums/arena-tag-type"; import { BattlerTagType } from "#enums/battler-tag-type"; diff --git a/src/test/moves/heart_swap.test.ts b/test/moves/heart_swap.test.ts similarity index 96% rename from src/test/moves/heart_swap.test.ts rename to test/moves/heart_swap.test.ts index a128549c459..a77f4c634cb 100644 --- a/src/test/moves/heart_swap.test.ts +++ b/test/moves/heart_swap.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/hyper_beam.test.ts b/test/moves/hyper_beam.test.ts similarity index 100% rename from src/test/moves/hyper_beam.test.ts rename to test/moves/hyper_beam.test.ts diff --git a/src/test/moves/imprison.test.ts b/test/moves/imprison.test.ts similarity index 100% rename from src/test/moves/imprison.test.ts rename to test/moves/imprison.test.ts diff --git a/src/test/moves/instruct.test.ts b/test/moves/instruct.test.ts similarity index 100% rename from src/test/moves/instruct.test.ts rename to test/moves/instruct.test.ts diff --git a/src/test/moves/jaw_lock.test.ts b/test/moves/jaw_lock.test.ts similarity index 99% rename from src/test/moves/jaw_lock.test.ts rename to test/moves/jaw_lock.test.ts index 30dbcac64a8..e952a585232 100644 --- a/src/test/moves/jaw_lock.test.ts +++ b/test/moves/jaw_lock.test.ts @@ -5,7 +5,7 @@ import { BerryPhase } from "#app/phases/berry-phase"; import { FaintPhase } from "#app/phases/faint-phase"; import { MoveEffectPhase } from "#app/phases/move-effect-phase"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Moves } from "#enums/moves"; import { Species } from "#enums/species"; import Phaser from "phaser"; diff --git a/src/test/moves/lash_out.test.ts b/test/moves/lash_out.test.ts similarity index 100% rename from src/test/moves/lash_out.test.ts rename to test/moves/lash_out.test.ts diff --git a/src/test/moves/last_respects.test.ts b/test/moves/last_respects.test.ts similarity index 100% rename from src/test/moves/last_respects.test.ts rename to test/moves/last_respects.test.ts diff --git a/src/test/moves/light_screen.test.ts b/test/moves/light_screen.test.ts similarity index 100% rename from src/test/moves/light_screen.test.ts rename to test/moves/light_screen.test.ts diff --git a/src/test/moves/lucky_chant.test.ts b/test/moves/lucky_chant.test.ts similarity index 98% rename from src/test/moves/lucky_chant.test.ts rename to test/moves/lucky_chant.test.ts index 02e9dd24465..a0a3955eecc 100644 --- a/src/test/moves/lucky_chant.test.ts +++ b/test/moves/lucky_chant.test.ts @@ -5,7 +5,7 @@ import { Species } from "#app/enums/species"; import { BerryPhase } from "#app/phases/berry-phase"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; describe("Moves - Lucky Chant", () => { diff --git a/src/test/moves/lunar_blessing.test.ts b/test/moves/lunar_blessing.test.ts similarity index 100% rename from src/test/moves/lunar_blessing.test.ts rename to test/moves/lunar_blessing.test.ts diff --git a/src/test/moves/lunar_dance.test.ts b/test/moves/lunar_dance.test.ts similarity index 100% rename from src/test/moves/lunar_dance.test.ts rename to test/moves/lunar_dance.test.ts diff --git a/src/test/moves/magic_coat.test.ts b/test/moves/magic_coat.test.ts similarity index 100% rename from src/test/moves/magic_coat.test.ts rename to test/moves/magic_coat.test.ts diff --git a/src/test/moves/magnet_rise.test.ts b/test/moves/magnet_rise.test.ts similarity index 100% rename from src/test/moves/magnet_rise.test.ts rename to test/moves/magnet_rise.test.ts diff --git a/src/test/moves/make_it_rain.test.ts b/test/moves/make_it_rain.test.ts similarity index 100% rename from src/test/moves/make_it_rain.test.ts rename to test/moves/make_it_rain.test.ts diff --git a/src/test/moves/mat_block.test.ts b/test/moves/mat_block.test.ts similarity index 98% rename from src/test/moves/mat_block.test.ts rename to test/moves/mat_block.test.ts index a4d9177cbdc..8852e6c04c1 100644 --- a/src/test/moves/mat_block.test.ts +++ b/test/moves/mat_block.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/metal_burst.test.ts b/test/moves/metal_burst.test.ts similarity index 100% rename from src/test/moves/metal_burst.test.ts rename to test/moves/metal_burst.test.ts diff --git a/src/test/moves/metronome.test.ts b/test/moves/metronome.test.ts similarity index 100% rename from src/test/moves/metronome.test.ts rename to test/moves/metronome.test.ts diff --git a/src/test/moves/miracle_eye.test.ts b/test/moves/miracle_eye.test.ts similarity index 100% rename from src/test/moves/miracle_eye.test.ts rename to test/moves/miracle_eye.test.ts diff --git a/src/test/moves/mirror_move.test.ts b/test/moves/mirror_move.test.ts similarity index 100% rename from src/test/moves/mirror_move.test.ts rename to test/moves/mirror_move.test.ts diff --git a/src/test/moves/mist.test.ts b/test/moves/mist.test.ts similarity index 100% rename from src/test/moves/mist.test.ts rename to test/moves/mist.test.ts diff --git a/src/test/moves/moongeist_beam.test.ts b/test/moves/moongeist_beam.test.ts similarity index 100% rename from src/test/moves/moongeist_beam.test.ts rename to test/moves/moongeist_beam.test.ts diff --git a/src/test/moves/multi_target.test.ts b/test/moves/multi_target.test.ts similarity index 100% rename from src/test/moves/multi_target.test.ts rename to test/moves/multi_target.test.ts diff --git a/src/test/moves/nightmare.test.ts b/test/moves/nightmare.test.ts similarity index 100% rename from src/test/moves/nightmare.test.ts rename to test/moves/nightmare.test.ts diff --git a/src/test/moves/obstruct.test.ts b/test/moves/obstruct.test.ts similarity index 100% rename from src/test/moves/obstruct.test.ts rename to test/moves/obstruct.test.ts diff --git a/src/test/moves/octolock.test.ts b/test/moves/octolock.test.ts similarity index 100% rename from src/test/moves/octolock.test.ts rename to test/moves/octolock.test.ts diff --git a/src/test/moves/order_up.test.ts b/test/moves/order_up.test.ts similarity index 100% rename from src/test/moves/order_up.test.ts rename to test/moves/order_up.test.ts diff --git a/src/test/moves/parting_shot.test.ts b/test/moves/parting_shot.test.ts similarity index 99% rename from src/test/moves/parting_shot.test.ts rename to test/moves/parting_shot.test.ts index 30ad3660a32..2071599ebc5 100644 --- a/src/test/moves/parting_shot.test.ts +++ b/test/moves/parting_shot.test.ts @@ -3,7 +3,7 @@ import { Moves } from "#enums/moves"; import { Species } from "#enums/species"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Stat } from "#enums/stat"; import { BerryPhase } from "#app/phases/berry-phase"; import { FaintPhase } from "#app/phases/faint-phase"; diff --git a/src/test/moves/plasma_fists.test.ts b/test/moves/plasma_fists.test.ts similarity index 100% rename from src/test/moves/plasma_fists.test.ts rename to test/moves/plasma_fists.test.ts diff --git a/src/test/moves/pledge_moves.test.ts b/test/moves/pledge_moves.test.ts similarity index 100% rename from src/test/moves/pledge_moves.test.ts rename to test/moves/pledge_moves.test.ts diff --git a/src/test/moves/powder.test.ts b/test/moves/powder.test.ts similarity index 100% rename from src/test/moves/powder.test.ts rename to test/moves/powder.test.ts diff --git a/src/test/moves/power_shift.test.ts b/test/moves/power_shift.test.ts similarity index 100% rename from src/test/moves/power_shift.test.ts rename to test/moves/power_shift.test.ts diff --git a/src/test/moves/power_split.test.ts b/test/moves/power_split.test.ts similarity index 97% rename from src/test/moves/power_split.test.ts rename to test/moves/power_split.test.ts index 914fa86e491..018ef851211 100644 --- a/src/test/moves/power_split.test.ts +++ b/test/moves/power_split.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/power_swap.test.ts b/test/moves/power_swap.test.ts similarity index 97% rename from src/test/moves/power_swap.test.ts rename to test/moves/power_swap.test.ts index e9a4b569c92..463c03579de 100644 --- a/src/test/moves/power_swap.test.ts +++ b/test/moves/power_swap.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/power_trick.test.ts b/test/moves/power_trick.test.ts similarity index 98% rename from src/test/moves/power_trick.test.ts rename to test/moves/power_trick.test.ts index a064a43dec4..16a2704e112 100644 --- a/src/test/moves/power_trick.test.ts +++ b/test/moves/power_trick.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Moves } from "#enums/moves"; import { Stat } from "#enums/stat"; import { Species } from "#enums/species"; diff --git a/src/test/moves/protect.test.ts b/test/moves/protect.test.ts similarity index 98% rename from src/test/moves/protect.test.ts rename to test/moves/protect.test.ts index e639969ddf0..3520890fe4d 100644 --- a/src/test/moves/protect.test.ts +++ b/test/moves/protect.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/psycho_shift.test.ts b/test/moves/psycho_shift.test.ts similarity index 100% rename from src/test/moves/psycho_shift.test.ts rename to test/moves/psycho_shift.test.ts diff --git a/src/test/moves/purify.test.ts b/test/moves/purify.test.ts similarity index 100% rename from src/test/moves/purify.test.ts rename to test/moves/purify.test.ts diff --git a/src/test/moves/quick_guard.test.ts b/test/moves/quick_guard.test.ts similarity index 98% rename from src/test/moves/quick_guard.test.ts rename to test/moves/quick_guard.test.ts index 7bda71782aa..7d9cf748db9 100644 --- a/src/test/moves/quick_guard.test.ts +++ b/test/moves/quick_guard.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/rage_fist.test.ts b/test/moves/rage_fist.test.ts similarity index 100% rename from src/test/moves/rage_fist.test.ts rename to test/moves/rage_fist.test.ts diff --git a/src/test/moves/rage_powder.test.ts b/test/moves/rage_powder.test.ts similarity index 100% rename from src/test/moves/rage_powder.test.ts rename to test/moves/rage_powder.test.ts diff --git a/src/test/moves/reflect.test.ts b/test/moves/reflect.test.ts similarity index 100% rename from src/test/moves/reflect.test.ts rename to test/moves/reflect.test.ts diff --git a/src/test/moves/reflect_type.test.ts b/test/moves/reflect_type.test.ts similarity index 100% rename from src/test/moves/reflect_type.test.ts rename to test/moves/reflect_type.test.ts diff --git a/src/test/moves/relic_song.test.ts b/test/moves/relic_song.test.ts similarity index 100% rename from src/test/moves/relic_song.test.ts rename to test/moves/relic_song.test.ts diff --git a/src/test/moves/retaliate.test.ts b/test/moves/retaliate.test.ts similarity index 96% rename from src/test/moves/retaliate.test.ts rename to test/moves/retaliate.test.ts index e00b9da6010..34a18292fb6 100644 --- a/src/test/moves/retaliate.test.ts +++ b/test/moves/retaliate.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { Moves } from "#enums/moves"; import { allMoves } from "#app/data/move"; diff --git a/src/test/moves/rollout.test.ts b/test/moves/rollout.test.ts similarity index 100% rename from src/test/moves/rollout.test.ts rename to test/moves/rollout.test.ts diff --git a/src/test/moves/roost.test.ts b/test/moves/roost.test.ts similarity index 100% rename from src/test/moves/roost.test.ts rename to test/moves/roost.test.ts diff --git a/src/test/moves/round.test.ts b/test/moves/round.test.ts similarity index 100% rename from src/test/moves/round.test.ts rename to test/moves/round.test.ts diff --git a/src/test/moves/safeguard.test.ts b/test/moves/safeguard.test.ts similarity index 98% rename from src/test/moves/safeguard.test.ts rename to test/moves/safeguard.test.ts index 6505162fd04..2de7069a0e1 100644 --- a/src/test/moves/safeguard.test.ts +++ b/test/moves/safeguard.test.ts @@ -2,7 +2,7 @@ import { BattlerIndex } from "#app/battle"; import { allAbilities, PostDefendContactApplyStatusEffectAbAttr } from "#app/data/ability"; import { Abilities } from "#app/enums/abilities"; import { StatusEffect } from "#app/enums/status-effect"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Moves } from "#enums/moves"; import { Species } from "#enums/species"; import Phaser from "phaser"; diff --git a/src/test/moves/scale_shot.test.ts b/test/moves/scale_shot.test.ts similarity index 100% rename from src/test/moves/scale_shot.test.ts rename to test/moves/scale_shot.test.ts diff --git a/src/test/moves/secret_power.test.ts b/test/moves/secret_power.test.ts similarity index 100% rename from src/test/moves/secret_power.test.ts rename to test/moves/secret_power.test.ts diff --git a/src/test/moves/shed_tail.test.ts b/test/moves/shed_tail.test.ts similarity index 100% rename from src/test/moves/shed_tail.test.ts rename to test/moves/shed_tail.test.ts diff --git a/src/test/moves/shell_side_arm.test.ts b/test/moves/shell_side_arm.test.ts similarity index 100% rename from src/test/moves/shell_side_arm.test.ts rename to test/moves/shell_side_arm.test.ts diff --git a/src/test/moves/shell_trap.test.ts b/test/moves/shell_trap.test.ts similarity index 100% rename from src/test/moves/shell_trap.test.ts rename to test/moves/shell_trap.test.ts diff --git a/src/test/moves/sketch.test.ts b/test/moves/sketch.test.ts similarity index 100% rename from src/test/moves/sketch.test.ts rename to test/moves/sketch.test.ts diff --git a/src/test/moves/sleep_talk.test.ts b/test/moves/sleep_talk.test.ts similarity index 100% rename from src/test/moves/sleep_talk.test.ts rename to test/moves/sleep_talk.test.ts diff --git a/src/test/moves/solar_beam.test.ts b/test/moves/solar_beam.test.ts similarity index 100% rename from src/test/moves/solar_beam.test.ts rename to test/moves/solar_beam.test.ts diff --git a/src/test/moves/sparkly_swirl.test.ts b/test/moves/sparkly_swirl.test.ts similarity index 100% rename from src/test/moves/sparkly_swirl.test.ts rename to test/moves/sparkly_swirl.test.ts diff --git a/src/test/moves/spectral_thief.test.ts b/test/moves/spectral_thief.test.ts similarity index 100% rename from src/test/moves/spectral_thief.test.ts rename to test/moves/spectral_thief.test.ts diff --git a/src/test/moves/speed_swap.test.ts b/test/moves/speed_swap.test.ts similarity index 96% rename from src/test/moves/speed_swap.test.ts rename to test/moves/speed_swap.test.ts index 179f1212394..c63f5eae572 100644 --- a/src/test/moves/speed_swap.test.ts +++ b/test/moves/speed_swap.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/spikes.test.ts b/test/moves/spikes.test.ts similarity index 100% rename from src/test/moves/spikes.test.ts rename to test/moves/spikes.test.ts diff --git a/src/test/moves/spit_up.test.ts b/test/moves/spit_up.test.ts similarity index 100% rename from src/test/moves/spit_up.test.ts rename to test/moves/spit_up.test.ts diff --git a/src/test/moves/spotlight.test.ts b/test/moves/spotlight.test.ts similarity index 100% rename from src/test/moves/spotlight.test.ts rename to test/moves/spotlight.test.ts diff --git a/src/test/moves/steamroller.test.ts b/test/moves/steamroller.test.ts similarity index 100% rename from src/test/moves/steamroller.test.ts rename to test/moves/steamroller.test.ts diff --git a/src/test/moves/stockpile.test.ts b/test/moves/stockpile.test.ts similarity index 100% rename from src/test/moves/stockpile.test.ts rename to test/moves/stockpile.test.ts diff --git a/src/test/moves/substitute.test.ts b/test/moves/substitute.test.ts similarity index 99% rename from src/test/moves/substitute.test.ts rename to test/moves/substitute.test.ts index 18b0c6ea536..7e0992d2906 100644 --- a/src/test/moves/substitute.test.ts +++ b/test/moves/substitute.test.ts @@ -4,7 +4,7 @@ import { SubstituteTag, TrappedTag } from "#app/data/battler-tags"; import { allMoves, StealHeldItemChanceAttr } from "#app/data/move"; import { MoveResult } from "#app/field/pokemon"; import type { CommandPhase } from "#app/phases/command-phase"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Command } from "#app/ui/command-ui-handler"; import { Mode } from "#app/ui/ui"; import { Abilities } from "#enums/abilities"; diff --git a/src/test/moves/swallow.test.ts b/test/moves/swallow.test.ts similarity index 100% rename from src/test/moves/swallow.test.ts rename to test/moves/swallow.test.ts diff --git a/src/test/moves/syrup_bomb.test.ts b/test/moves/syrup_bomb.test.ts similarity index 100% rename from src/test/moves/syrup_bomb.test.ts rename to test/moves/syrup_bomb.test.ts diff --git a/src/test/moves/tackle.test.ts b/test/moves/tackle.test.ts similarity index 100% rename from src/test/moves/tackle.test.ts rename to test/moves/tackle.test.ts diff --git a/src/test/moves/tail_whip.test.ts b/test/moves/tail_whip.test.ts similarity index 100% rename from src/test/moves/tail_whip.test.ts rename to test/moves/tail_whip.test.ts diff --git a/src/test/moves/tailwind.test.ts b/test/moves/tailwind.test.ts similarity index 100% rename from src/test/moves/tailwind.test.ts rename to test/moves/tailwind.test.ts diff --git a/src/test/moves/tar_shot.test.ts b/test/moves/tar_shot.test.ts similarity index 100% rename from src/test/moves/tar_shot.test.ts rename to test/moves/tar_shot.test.ts diff --git a/src/test/moves/taunt.test.ts b/test/moves/taunt.test.ts similarity index 100% rename from src/test/moves/taunt.test.ts rename to test/moves/taunt.test.ts diff --git a/src/test/moves/telekinesis.test.ts b/test/moves/telekinesis.test.ts similarity index 100% rename from src/test/moves/telekinesis.test.ts rename to test/moves/telekinesis.test.ts diff --git a/src/test/moves/tera_blast.test.ts b/test/moves/tera_blast.test.ts similarity index 100% rename from src/test/moves/tera_blast.test.ts rename to test/moves/tera_blast.test.ts diff --git a/src/test/moves/tera_starstorm.test.ts b/test/moves/tera_starstorm.test.ts similarity index 100% rename from src/test/moves/tera_starstorm.test.ts rename to test/moves/tera_starstorm.test.ts diff --git a/src/test/moves/thousand_arrows.test.ts b/test/moves/thousand_arrows.test.ts similarity index 100% rename from src/test/moves/thousand_arrows.test.ts rename to test/moves/thousand_arrows.test.ts diff --git a/src/test/moves/throat_chop.test.ts b/test/moves/throat_chop.test.ts similarity index 100% rename from src/test/moves/throat_chop.test.ts rename to test/moves/throat_chop.test.ts diff --git a/src/test/moves/thunder_wave.test.ts b/test/moves/thunder_wave.test.ts similarity index 100% rename from src/test/moves/thunder_wave.test.ts rename to test/moves/thunder_wave.test.ts diff --git a/src/test/moves/tidy_up.test.ts b/test/moves/tidy_up.test.ts similarity index 100% rename from src/test/moves/tidy_up.test.ts rename to test/moves/tidy_up.test.ts diff --git a/src/test/moves/torment.test.ts b/test/moves/torment.test.ts similarity index 100% rename from src/test/moves/torment.test.ts rename to test/moves/torment.test.ts diff --git a/src/test/moves/toxic.test.ts b/test/moves/toxic.test.ts similarity index 100% rename from src/test/moves/toxic.test.ts rename to test/moves/toxic.test.ts diff --git a/src/test/moves/toxic_spikes.test.ts b/test/moves/toxic_spikes.test.ts similarity index 100% rename from src/test/moves/toxic_spikes.test.ts rename to test/moves/toxic_spikes.test.ts diff --git a/src/test/moves/transform.test.ts b/test/moves/transform.test.ts similarity index 98% rename from src/test/moves/transform.test.ts rename to test/moves/transform.test.ts index adb97b42af7..6c3d41d6871 100644 --- a/src/test/moves/transform.test.ts +++ b/test/moves/transform.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import Phaser from "phaser"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/trick_or_treat.test.ts b/test/moves/trick_or_treat.test.ts similarity index 100% rename from src/test/moves/trick_or_treat.test.ts rename to test/moves/trick_or_treat.test.ts diff --git a/src/test/moves/triple_arrows.test.ts b/test/moves/triple_arrows.test.ts similarity index 100% rename from src/test/moves/triple_arrows.test.ts rename to test/moves/triple_arrows.test.ts diff --git a/src/test/moves/u_turn.test.ts b/test/moves/u_turn.test.ts similarity index 100% rename from src/test/moves/u_turn.test.ts rename to test/moves/u_turn.test.ts diff --git a/src/test/moves/upper_hand.test.ts b/test/moves/upper_hand.test.ts similarity index 100% rename from src/test/moves/upper_hand.test.ts rename to test/moves/upper_hand.test.ts diff --git a/src/test/moves/whirlwind.test.ts b/test/moves/whirlwind.test.ts similarity index 100% rename from src/test/moves/whirlwind.test.ts rename to test/moves/whirlwind.test.ts diff --git a/src/test/moves/wide_guard.test.ts b/test/moves/wide_guard.test.ts similarity index 98% rename from src/test/moves/wide_guard.test.ts rename to test/moves/wide_guard.test.ts index c25a700c981..21d5e2d6d63 100644 --- a/src/test/moves/wide_guard.test.ts +++ b/test/moves/wide_guard.test.ts @@ -1,6 +1,6 @@ import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest"; -import GameManager from "../utils/gameManager"; +import GameManager from "#app/utils/gameManager"; import { Species } from "#enums/species"; import { Abilities } from "#enums/abilities"; import { Moves } from "#enums/moves"; diff --git a/src/test/moves/will_o_wisp.test.ts b/test/moves/will_o_wisp.test.ts similarity index 100% rename from src/test/moves/will_o_wisp.test.ts rename to test/moves/will_o_wisp.test.ts diff --git a/src/test/mystery-encounter/encounter-test-utils.ts b/test/mystery-encounter/encounter-test-utils.ts similarity index 100% rename from src/test/mystery-encounter/encounter-test-utils.ts rename to test/mystery-encounter/encounter-test-utils.ts diff --git a/src/test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts b/test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts rename to test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts index 5a01b8a7379..d355ae2040c 100644 --- a/src/test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts +++ b/test/mystery-encounter/encounters/a-trainers-test-encounter.test.ts @@ -3,7 +3,7 @@ import { HUMAN_TRANSITABLE_BIOMES } from "#app/data/mystery-encounters/mystery-e import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts b/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts rename to test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts index 797c062dafe..984afd196cf 100644 --- a/src/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts +++ b/test/mystery-encounter/encounters/absolute-avarice-encounter.test.ts @@ -1,7 +1,7 @@ import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts b/test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts rename to test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts index 9a6dae53901..0cfe36974eb 100644 --- a/src/test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts +++ b/test/mystery-encounter/encounters/an-offer-you-cant-refuse-encounter.test.ts @@ -3,7 +3,7 @@ import { HUMAN_TRANSITABLE_BIOMES } from "#app/data/mystery-encounters/mystery-e import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/berries-abound-encounter.test.ts b/test/mystery-encounter/encounters/berries-abound-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/berries-abound-encounter.test.ts rename to test/mystery-encounter/encounters/berries-abound-encounter.test.ts index f980b0cb20a..1705b2134d5 100644 --- a/src/test/mystery-encounter/encounters/berries-abound-encounter.test.ts +++ b/test/mystery-encounter/encounters/berries-abound-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; import type BattleScene from "#app/battle-scene"; diff --git a/src/test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts b/test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts rename to test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts index 1ff523909da..3b51eebf024 100644 --- a/src/test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts +++ b/test/mystery-encounter/encounters/bug-type-superfan-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; import { Moves } from "#enums/moves"; diff --git a/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts b/test/mystery-encounter/encounters/clowning-around-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts rename to test/mystery-encounter/encounters/clowning-around-encounter.test.ts index f105678e71f..10b8305c841 100644 --- a/src/test/mystery-encounter/encounters/clowning-around-encounter.test.ts +++ b/test/mystery-encounter/encounters/clowning-around-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { getPokemonSpecies } from "#app/data/pokemon-species"; import * as BattleAnims from "#app/data/battle-anims"; diff --git a/src/test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts b/test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts rename to test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts index 795e6b6650b..5b191948843 100644 --- a/src/test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts +++ b/test/mystery-encounter/encounters/dancing-lessons-encounter.test.ts @@ -1,7 +1,7 @@ import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/delibirdy-encounter.test.ts b/test/mystery-encounter/encounters/delibirdy-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/delibirdy-encounter.test.ts rename to test/mystery-encounter/encounters/delibirdy-encounter.test.ts index f99aa24805e..e0bb5b111d1 100644 --- a/src/test/mystery-encounter/encounters/delibirdy-encounter.test.ts +++ b/test/mystery-encounter/encounters/delibirdy-encounter.test.ts @@ -1,7 +1,7 @@ import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/department-store-sale-encounter.test.ts b/test/mystery-encounter/encounters/department-store-sale-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/department-store-sale-encounter.test.ts rename to test/mystery-encounter/encounters/department-store-sale-encounter.test.ts index e30aaadbf85..bd9160f2f48 100644 --- a/src/test/mystery-encounter/encounters/department-store-sale-encounter.test.ts +++ b/test/mystery-encounter/encounters/department-store-sale-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/field-trip-encounter.test.ts b/test/mystery-encounter/encounters/field-trip-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/field-trip-encounter.test.ts rename to test/mystery-encounter/encounters/field-trip-encounter.test.ts index bc9be246e10..16c721098d0 100644 --- a/src/test/mystery-encounter/encounters/field-trip-encounter.test.ts +++ b/test/mystery-encounter/encounters/field-trip-encounter.test.ts @@ -1,7 +1,7 @@ import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/fiery-fallout-encounter.test.ts b/test/mystery-encounter/encounters/fiery-fallout-encounter.test.ts similarity index 100% rename from src/test/mystery-encounter/encounters/fiery-fallout-encounter.test.ts rename to test/mystery-encounter/encounters/fiery-fallout-encounter.test.ts diff --git a/src/test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts b/test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts rename to test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts index 8c869812f39..6f3338ca059 100644 --- a/src/test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts +++ b/test/mystery-encounter/encounters/fight-or-flight-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; import { Moves } from "#enums/moves"; diff --git a/src/test/mystery-encounter/encounters/fun-and-games-encounter.test.ts b/test/mystery-encounter/encounters/fun-and-games-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/fun-and-games-encounter.test.ts rename to test/mystery-encounter/encounters/fun-and-games-encounter.test.ts index 44ddbb8f7ba..6e8de4d8515 100644 --- a/src/test/mystery-encounter/encounters/fun-and-games-encounter.test.ts +++ b/test/mystery-encounter/encounters/fun-and-games-encounter.test.ts @@ -3,7 +3,7 @@ import { HUMAN_TRANSITABLE_BIOMES } from "#app/data/mystery-encounters/mystery-e import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#test/mystery-encounter/encounter-test-utils"; import type BattleScene from "#app/battle-scene"; diff --git a/src/test/mystery-encounter/encounters/global-trade-system-encounter.test.ts b/test/mystery-encounter/encounters/global-trade-system-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/global-trade-system-encounter.test.ts rename to test/mystery-encounter/encounters/global-trade-system-encounter.test.ts index fb5801c941a..292db2a2a16 100644 --- a/src/test/mystery-encounter/encounters/global-trade-system-encounter.test.ts +++ b/test/mystery-encounter/encounters/global-trade-system-encounter.test.ts @@ -1,7 +1,7 @@ import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts b/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts rename to test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts index 17e324f29f0..06607e59765 100644 --- a/src/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts +++ b/test/mystery-encounter/encounters/lost-at-sea-encounter.test.ts @@ -5,9 +5,9 @@ import { getPokemonSpecies } from "#app/data/pokemon-species"; import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "../encounter-test-utils"; +import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#app/encounter-test-utils"; import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode"; import { MysteryEncounterTier } from "#enums/mystery-encounter-tier"; import { initSceneWithoutEncounterPhase } from "#test/utils/gameManagerUtils"; diff --git a/src/test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts b/test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts rename to test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts index 7729fa40599..324838edac5 100644 --- a/src/test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts +++ b/test/mystery-encounter/encounters/mysterious-challengers-encounter.test.ts @@ -3,7 +3,7 @@ import { HUMAN_TRANSITABLE_BIOMES } from "#app/data/mystery-encounters/mystery-e import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; import type BattleScene from "#app/battle-scene"; diff --git a/src/test/mystery-encounter/encounters/part-timer-encounter.test.ts b/test/mystery-encounter/encounters/part-timer-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/part-timer-encounter.test.ts rename to test/mystery-encounter/encounters/part-timer-encounter.test.ts index e8f2af0de5f..ac51c0ce638 100644 --- a/src/test/mystery-encounter/encounters/part-timer-encounter.test.ts +++ b/test/mystery-encounter/encounters/part-timer-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/safari-zone.test.ts b/test/mystery-encounter/encounters/safari-zone.test.ts similarity index 100% rename from src/test/mystery-encounter/encounters/safari-zone.test.ts rename to test/mystery-encounter/encounters/safari-zone.test.ts diff --git a/src/test/mystery-encounter/encounters/teleporting-hijinks-encounter.test.ts b/test/mystery-encounter/encounters/teleporting-hijinks-encounter.test.ts similarity index 100% rename from src/test/mystery-encounter/encounters/teleporting-hijinks-encounter.test.ts rename to test/mystery-encounter/encounters/teleporting-hijinks-encounter.test.ts diff --git a/src/test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts b/test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts rename to test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts index e6f8127b776..ee3fc9f1dd2 100644 --- a/src/test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts +++ b/test/mystery-encounter/encounters/the-expert-breeder-encounter.test.ts @@ -3,7 +3,7 @@ import { HUMAN_TRANSITABLE_BIOMES } from "#app/data/mystery-encounters/mystery-e import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; import type BattleScene from "#app/battle-scene"; diff --git a/src/test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts b/test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts rename to test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts index 4fd96f8d5bc..4cf3d9f0b15 100644 --- a/src/test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts +++ b/test/mystery-encounter/encounters/the-pokemon-salesman-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/encounters/the-strong-stuff-encounter.test.ts b/test/mystery-encounter/encounters/the-strong-stuff-encounter.test.ts similarity index 100% rename from src/test/mystery-encounter/encounters/the-strong-stuff-encounter.test.ts rename to test/mystery-encounter/encounters/the-strong-stuff-encounter.test.ts diff --git a/src/test/mystery-encounter/encounters/the-winstrate-challenge-encounter.test.ts b/test/mystery-encounter/encounters/the-winstrate-challenge-encounter.test.ts similarity index 100% rename from src/test/mystery-encounter/encounters/the-winstrate-challenge-encounter.test.ts rename to test/mystery-encounter/encounters/the-winstrate-challenge-encounter.test.ts diff --git a/src/test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts b/test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts rename to test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts index 395e33e818a..83c1afac0de 100644 --- a/src/test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts +++ b/test/mystery-encounter/encounters/trash-to-treasure-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { getPokemonSpecies } from "#app/data/pokemon-species"; import * as BattleAnims from "#app/data/battle-anims"; diff --git a/src/test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts b/test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts rename to test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts index 39904c030a3..e73dc0623a1 100644 --- a/src/test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts +++ b/test/mystery-encounter/encounters/uncommon-breed-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { runMysteryEncounterToEnd, runSelectMysteryEncounterOption } from "#test/mystery-encounter/encounter-test-utils"; import { Moves } from "#enums/moves"; diff --git a/src/test/mystery-encounter/encounters/weird-dream-encounter.test.ts b/test/mystery-encounter/encounters/weird-dream-encounter.test.ts similarity index 99% rename from src/test/mystery-encounter/encounters/weird-dream-encounter.test.ts rename to test/mystery-encounter/encounters/weird-dream-encounter.test.ts index 669a99b92cd..3210465c9a0 100644 --- a/src/test/mystery-encounter/encounters/weird-dream-encounter.test.ts +++ b/test/mystery-encounter/encounters/weird-dream-encounter.test.ts @@ -2,7 +2,7 @@ import * as MysteryEncounters from "#app/data/mystery-encounters/mystery-encount import { Biome } from "#app/enums/biome"; import { MysteryEncounterType } from "#app/enums/mystery-encounter-type"; import { Species } from "#app/enums/species"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import * as EncounterPhaseUtils from "#app/data/mystery-encounters/utils/encounter-phase-utils"; import { runMysteryEncounterToEnd, skipBattleRunMysteryEncounterRewardsPhase } from "#test/mystery-encounter/encounter-test-utils"; diff --git a/src/test/mystery-encounter/mystery-encounter-utils.test.ts b/test/mystery-encounter/mystery-encounter-utils.test.ts similarity index 99% rename from src/test/mystery-encounter/mystery-encounter-utils.test.ts rename to test/mystery-encounter/mystery-encounter-utils.test.ts index 7c924b86e0d..7ab33ff73b8 100644 --- a/src/test/mystery-encounter/mystery-encounter-utils.test.ts +++ b/test/mystery-encounter/mystery-encounter-utils.test.ts @@ -6,7 +6,7 @@ import { getHighestLevelPlayerPokemon, getLowestLevelPlayerPokemon, getRandomPla import { getPokemonSpecies } from "#app/data/pokemon-species"; import { Type } from "#enums/type"; import { MessagePhase } from "#app/phases/message-phase"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import { Species } from "#enums/species"; import { StatusEffect } from "#enums/status-effect"; import { initSceneWithoutEncounterPhase } from "#test/utils/gameManagerUtils"; diff --git a/src/test/mystery-encounter/mystery-encounter.test.ts b/test/mystery-encounter/mystery-encounter.test.ts similarity index 96% rename from src/test/mystery-encounter/mystery-encounter.test.ts rename to test/mystery-encounter/mystery-encounter.test.ts index 7958fc1cd46..b96730b9660 100644 --- a/src/test/mystery-encounter/mystery-encounter.test.ts +++ b/test/mystery-encounter/mystery-encounter.test.ts @@ -1,5 +1,5 @@ import { afterEach, beforeAll, beforeEach, expect, describe, it } from "vitest"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import Phaser from "phaser"; import { Species } from "#enums/species"; import { MysteryEncounterPhase } from "#app/phases/mystery-encounter-phases"; diff --git a/src/test/phases/form-change-phase.test.ts b/test/phases/form-change-phase.test.ts similarity index 100% rename from src/test/phases/form-change-phase.test.ts rename to test/phases/form-change-phase.test.ts diff --git a/src/test/phases/frenzy-move-reset.test.ts b/test/phases/frenzy-move-reset.test.ts similarity index 100% rename from src/test/phases/frenzy-move-reset.test.ts rename to test/phases/frenzy-move-reset.test.ts diff --git a/src/test/phases/game-over-phase.test.ts b/test/phases/game-over-phase.test.ts similarity index 100% rename from src/test/phases/game-over-phase.test.ts rename to test/phases/game-over-phase.test.ts diff --git a/src/test/phases/learn-move-phase.test.ts b/test/phases/learn-move-phase.test.ts similarity index 100% rename from src/test/phases/learn-move-phase.test.ts rename to test/phases/learn-move-phase.test.ts diff --git a/src/test/phases/mystery-encounter-phase.test.ts b/test/phases/mystery-encounter-phase.test.ts similarity index 98% rename from src/test/phases/mystery-encounter-phase.test.ts rename to test/phases/mystery-encounter-phase.test.ts index 507862534af..8f8103e8e71 100644 --- a/src/test/phases/mystery-encounter-phase.test.ts +++ b/test/phases/mystery-encounter-phase.test.ts @@ -1,5 +1,5 @@ import { afterEach, beforeAll, beforeEach, expect, describe, it, vi } from "vitest"; -import GameManager from "#app/test/utils/gameManager"; +import GameManager from "#test/utils/gameManager"; import Phaser from "phaser"; import { Species } from "#enums/species"; import { MysteryEncounterOptionSelectedPhase, MysteryEncounterPhase } from "#app/phases/mystery-encounter-phases"; diff --git a/src/test/phases/phases.test.ts b/test/phases/phases.test.ts similarity index 100% rename from src/test/phases/phases.test.ts rename to test/phases/phases.test.ts diff --git a/src/test/phases/select-modifier-phase.test.ts b/test/phases/select-modifier-phase.test.ts similarity index 100% rename from src/test/phases/select-modifier-phase.test.ts rename to test/phases/select-modifier-phase.test.ts diff --git a/src/test/plugins/api/pokerogue-account-api.test.ts b/test/plugins/api/pokerogue-account-api.test.ts similarity index 98% rename from src/test/plugins/api/pokerogue-account-api.test.ts rename to test/plugins/api/pokerogue-account-api.test.ts index 90a7d3639ad..e03067b44d2 100644 --- a/src/test/plugins/api/pokerogue-account-api.test.ts +++ b/test/plugins/api/pokerogue-account-api.test.ts @@ -1,7 +1,7 @@ import type { AccountInfoResponse } from "#app/@types/PokerogueAccountApi"; import { SESSION_ID_COOKIE_NAME } from "#app/constants"; import { PokerogueAccountApi } from "#app/plugins/api/pokerogue-account-api"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import * as Utils from "#app/utils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-admin-api.test.ts b/test/plugins/api/pokerogue-admin-api.test.ts similarity index 99% rename from src/test/plugins/api/pokerogue-admin-api.test.ts rename to test/plugins/api/pokerogue-admin-api.test.ts index 5ae46abfcc8..81edd35509c 100644 --- a/src/test/plugins/api/pokerogue-admin-api.test.ts +++ b/test/plugins/api/pokerogue-admin-api.test.ts @@ -7,7 +7,7 @@ import type { UnlinkAccountFromGoogledIdRequest, } from "#app/@types/PokerogueAdminApi"; import { PokerogueAdminApi } from "#app/plugins/api/pokerogue-admin-api"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-api.test.ts b/test/plugins/api/pokerogue-api.test.ts similarity index 98% rename from src/test/plugins/api/pokerogue-api.test.ts rename to test/plugins/api/pokerogue-api.test.ts index a62174c226d..e88bdc1a9d5 100644 --- a/src/test/plugins/api/pokerogue-api.test.ts +++ b/test/plugins/api/pokerogue-api.test.ts @@ -1,6 +1,6 @@ import type { TitleStatsResponse } from "#app/@types/PokerogueApi"; import { pokerogueApi } from "#app/plugins/api/pokerogue-api"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-daily-api.test.ts b/test/plugins/api/pokerogue-daily-api.test.ts similarity index 98% rename from src/test/plugins/api/pokerogue-daily-api.test.ts rename to test/plugins/api/pokerogue-daily-api.test.ts index 569e7cbb15d..578d54e25fe 100644 --- a/src/test/plugins/api/pokerogue-daily-api.test.ts +++ b/test/plugins/api/pokerogue-daily-api.test.ts @@ -1,6 +1,6 @@ import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#app/@types/PokerogueDailyApi"; import { PokerogueDailyApi } from "#app/plugins/api/pokerogue-daily-api"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { ScoreboardCategory, type RankingEntry } from "#app/ui/daily-run-scoreboard"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-savedata-api.test.ts b/test/plugins/api/pokerogue-savedata-api.test.ts similarity index 96% rename from src/test/plugins/api/pokerogue-savedata-api.test.ts rename to test/plugins/api/pokerogue-savedata-api.test.ts index 6dd402206e5..296b648a27d 100644 --- a/src/test/plugins/api/pokerogue-savedata-api.test.ts +++ b/test/plugins/api/pokerogue-savedata-api.test.ts @@ -1,6 +1,6 @@ import type { UpdateAllSavedataRequest } from "#app/@types/PokerogueSavedataApi"; import { PokerogueSavedataApi } from "#app/plugins/api/pokerogue-savedata-api"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-session-savedata-api.test.ts b/test/plugins/api/pokerogue-session-savedata-api.test.ts similarity index 99% rename from src/test/plugins/api/pokerogue-session-savedata-api.test.ts rename to test/plugins/api/pokerogue-session-savedata-api.test.ts index f453c5edd88..234771481f5 100644 --- a/src/test/plugins/api/pokerogue-session-savedata-api.test.ts +++ b/test/plugins/api/pokerogue-session-savedata-api.test.ts @@ -8,7 +8,7 @@ import type { } from "#app/@types/PokerogueSessionSavedataApi"; import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api"; import type { SessionSaveData } from "#app/system/game-data"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/plugins/api/pokerogue-system-savedata-api.test.ts b/test/plugins/api/pokerogue-system-savedata-api.test.ts similarity index 98% rename from src/test/plugins/api/pokerogue-system-savedata-api.test.ts rename to test/plugins/api/pokerogue-system-savedata-api.test.ts index af377762b77..7855da6e09f 100644 --- a/src/test/plugins/api/pokerogue-system-savedata-api.test.ts +++ b/test/plugins/api/pokerogue-system-savedata-api.test.ts @@ -6,7 +6,7 @@ import type { } from "#app/@types/PokerogueSystemSavedataApi"; import { PokerogueSystemSavedataApi } from "#app/plugins/api/pokerogue-system-savedata-api"; import type { SystemSaveData } from "#app/system/game-data"; -import { getApiBaseUrl } from "#app/test/utils/testUtils"; +import { getApiBaseUrl } from "#test/utils/testUtils"; import { http, HttpResponse } from "msw"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/src/test/pre.test.ts b/test/pre.test.ts similarity index 100% rename from src/test/pre.test.ts rename to test/pre.test.ts diff --git a/src/test/reload.test.ts b/test/reload.test.ts similarity index 100% rename from src/test/reload.test.ts rename to test/reload.test.ts diff --git a/src/test/settingMenu/helpers/inGameManip.ts b/test/settingMenu/helpers/inGameManip.ts similarity index 100% rename from src/test/settingMenu/helpers/inGameManip.ts rename to test/settingMenu/helpers/inGameManip.ts diff --git a/src/test/settingMenu/helpers/menuManip.ts b/test/settingMenu/helpers/menuManip.ts similarity index 100% rename from src/test/settingMenu/helpers/menuManip.ts rename to test/settingMenu/helpers/menuManip.ts diff --git a/src/test/settingMenu/rebinding_setting.test.ts b/test/settingMenu/rebinding_setting.test.ts similarity index 100% rename from src/test/settingMenu/rebinding_setting.test.ts rename to test/settingMenu/rebinding_setting.test.ts diff --git a/src/test/sprites/pokemonSprite.test.ts b/test/sprites/pokemonSprite.test.ts similarity index 99% rename from src/test/sprites/pokemonSprite.test.ts rename to test/sprites/pokemonSprite.test.ts index 2bfdbe9ce39..16c89e68d4d 100644 --- a/src/test/sprites/pokemonSprite.test.ts +++ b/test/sprites/pokemonSprite.test.ts @@ -2,7 +2,7 @@ import { getAppRootDir } from "#test/sprites/spritesUtils"; import fs from "fs"; import path from "path"; import { beforeAll, describe, expect, it } from "vitest"; -import _masterlist from "../../../public/images/pokemon/variant/_masterlist.json"; +import _masterlist from "#app/public/images/pokemon/variant/_masterlist.json"; type PokemonVariantMasterlist = typeof _masterlist; diff --git a/src/test/sprites/spritesUtils.ts b/test/sprites/spritesUtils.ts similarity index 100% rename from src/test/sprites/spritesUtils.ts rename to test/sprites/spritesUtils.ts diff --git a/src/test/system/game_data.test.ts b/test/system/game_data.test.ts similarity index 98% rename from src/test/system/game_data.test.ts rename to test/system/game_data.test.ts index ad24c40f445..6dcddb0c5a5 100644 --- a/src/test/system/game_data.test.ts +++ b/test/system/game_data.test.ts @@ -6,7 +6,7 @@ import { Moves } from "#enums/moves"; import GameManager from "#test/utils/gameManager"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import * as account from "../../account"; +import * as account from "#app/account"; describe("System - Game Data", () => { let phaserGame: Phaser.Game; diff --git a/src/test/ui/battle_info.test.ts b/test/ui/battle_info.test.ts similarity index 97% rename from src/test/ui/battle_info.test.ts rename to test/ui/battle_info.test.ts index 3100372f091..de1d53581eb 100644 --- a/src/test/ui/battle_info.test.ts +++ b/test/ui/battle_info.test.ts @@ -7,7 +7,7 @@ import GameManager from "#test/utils/gameManager"; import Phaser from "phaser"; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -vi.mock("../data/exp", ({}) => { +vi.mock("#app/data/exp", ({}) => { return { getLevelRelExp: vi.fn(() => 1), //consistent levelRelExp }; diff --git a/test/ui/pokedex.test.ts b/test/ui/pokedex.test.ts new file mode 100644 index 00000000000..458c171687b --- /dev/null +++ b/test/ui/pokedex.test.ts @@ -0,0 +1,600 @@ +import { Gender } from "#app/data/gender"; +import { Nature } from "#enums/nature"; +import { allSpecies } from "#app/data/pokemon-species"; +import { GameModes } from "#app/game-mode"; +import { EncounterPhase } from "#app/phases/encounter-phase"; +import { SelectStarterPhase } from "#app/phases/select-starter-phase"; +import type { TitlePhase } from "#app/phases/title-phase"; +import type { OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler"; +import type SaveSlotSelectUiHandler from "#app/ui/save-slot-select-ui-handler"; +import type OptionSelectUiHandler from "#app/ui/settings/option-select-ui-handler"; +import type StarterSelectUiHandler from "#app/ui/starter-select-ui-handler"; +import { Mode } from "#app/ui/ui"; +import { Abilities } from "#enums/abilities"; +import { Button } from "#enums/buttons"; +import { Species } from "#enums/species"; +import GameManager from "#test/utils/gameManager"; +import i18next from "i18next"; +import Phaser from "phaser"; +import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; + + +describe("UI - Pokedex", () => { + let phaserGame: Phaser.Game; + let game: GameManager; + + beforeAll(() => { + phaserGame = new Phaser.Game({ + type: Phaser.HEADLESS, + }); + }); + + afterEach(() => { + game.phaseInterceptor.restoreOg(); + }); + + beforeEach(() => { + game = new GameManager(phaserGame); + }); + + it("Bulbasaur - shiny - variant 2 male", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(2); + expect(game.scene.getPlayerParty()[0].gender).toBe(Gender.MALE); + }, 20000); + + it("Bulbasaur - shiny - variant 2 female hardy overgrow", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.CYCLE_GENDER); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(2); + expect(game.scene.getPlayerParty()[0].nature).toBe(Nature.HARDY); + expect(game.scene.getPlayerParty()[0].getAbility().id).toBe(Abilities.OVERGROW); + }, 20000); + + it("Bulbasaur - shiny - variant 2 female lonely chlorophyl", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.CYCLE_GENDER); + handler.processInput(Button.CYCLE_NATURE); + handler.processInput(Button.CYCLE_ABILITY); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(2); + expect(game.scene.getPlayerParty()[0].gender).toBe(Gender.FEMALE); + expect(game.scene.getPlayerParty()[0].nature).toBe(Nature.LONELY); + expect(game.scene.getPlayerParty()[0].getAbility().id).toBe(Abilities.CHLOROPHYLL); + }, 20000); + + it("Bulbasaur - shiny - variant 2 female", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.CYCLE_GENDER); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(2); + expect(game.scene.getPlayerParty()[0].gender).toBe(Gender.FEMALE); + }, 20000); + + it("Bulbasaur - not shiny", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.ACTION); + handler.processInput(Button.CYCLE_SHINY); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(false); + expect(game.scene.getPlayerParty()[0].variant).toBe(0); + }, 20000); + + it("Bulbasaur - shiny - variant 1", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.CYCLE_SHINY); + handler.processInput(Button.CYCLE_SHINY); + handler.processInput(Button.CYCLE_SHINY); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(1); + }, 20000); + + it("Bulbasaur - shiny - variant 0", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.LEFT); + handler.processInput(Button.CYCLE_SHINY); + handler.processInput(Button.CYCLE_SHINY); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.SUBMIT); + }); + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + resolve(); + }); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.BULBASAUR); + expect(game.scene.getPlayerParty()[0].shiny).toBe(true); + expect(game.scene.getPlayerParty()[0].variant).toBe(0); + }, 20000); + + it("Check if first pokemon in party is caterpie from gen 1 and 1rd row, 3rd column", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.RIGHT); + handler.processInput(Button.RIGHT); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + let starterSelectUiHandler: StarterSelectUiHandler; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + starterSelectUiHandler = game.scene.ui.getHandler() as StarterSelectUiHandler; + starterSelectUiHandler.processInput(Button.SUBMIT); + resolve(); + }); + }); + + // expect(starterSelectUiHandler.starterGens[0]).toBe(0); + // expect(starterSelectUiHandler.starterCursors[0]).toBe(3); + // expect(starterSelectUiHandler.cursorObj.x).toBe(132 + 4 * 18); + // expect(starterSelectUiHandler.cursorObj.y).toBe(10); + + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.CATERPIE); + }, 20000); + + it("Check if first pokemon in party is nidoran_m from gen 1 and 2nd row, 4th column (cursor (9+4)-1)", async() => { + await game.importData("src/test/utils/saves/everything.prsv"); + const caughtCount = Object.keys(game.scene.gameData.dexData).filter((key) => { + const species = game.scene.gameData.dexData[key]; + return species.caughtAttr !== 0n; + }).length; + expect(caughtCount).toBe(Object.keys(allSpecies).length); + await game.runToTitle(); + game.onNextPrompt("TitlePhase", Mode.TITLE, () => { + const currentPhase = game.scene.getCurrentPhase() as TitlePhase; + currentPhase.gameMode = GameModes.CLASSIC; + currentPhase.end(); + }); + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.RIGHT); + handler.processInput(Button.RIGHT); + handler.processInput(Button.RIGHT); + handler.processInput(Button.DOWN); + handler.processInput(Button.ACTION); + game.phaseInterceptor.unlock(); + }); + await game.phaseInterceptor.run(SelectStarterPhase); + let options: OptionSelectItem[] = []; + let optionSelectUiHandler: OptionSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.OPTION_SELECT, () => { + optionSelectUiHandler = game.scene.ui.getHandler() as OptionSelectUiHandler; + options = optionSelectUiHandler.getOptionsWithScroll(); + resolve(); + }); + }); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:addToParty"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:toggleIVs"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:manageMoves"))).toBe(true); + expect(options.some(option => option.label === i18next.t("starterSelectUiHandler:useCandies"))).toBe(true); + expect(options.some(option => option.label === i18next.t("menu:cancel"))).toBe(true); + optionSelectUiHandler?.processInput(Button.ACTION); + + let starterSelectUiHandler: StarterSelectUiHandler | undefined; + await new Promise((resolve) => { + game.onNextPrompt("SelectStarterPhase", Mode.STARTER_SELECT, () => { + starterSelectUiHandler = game.scene.ui.getHandler() as StarterSelectUiHandler; + starterSelectUiHandler.processInput(Button.SUBMIT); + resolve(); + }); + }); + + expect(starterSelectUiHandler?.starterSpecies.length).toBe(1); + expect(starterSelectUiHandler?.starterSpecies[0].generation).toBe(1); + expect(starterSelectUiHandler?.starterSpecies[0].speciesId).toBe(32); + expect(starterSelectUiHandler?.cursorObj.x).toBe(53); + expect(starterSelectUiHandler?.cursorObj.y).toBe(31); + + game.onNextPrompt("SelectStarterPhase", Mode.CONFIRM, () => { + const handler = game.scene.ui.getHandler() as StarterSelectUiHandler; + handler.processInput(Button.ACTION); + }); + game.onNextPrompt("SelectStarterPhase", Mode.SAVE_SLOT, () => { + const saveSlotSelectUiHandler = game.scene.ui.getHandler() as SaveSlotSelectUiHandler; + saveSlotSelectUiHandler.processInput(Button.ACTION); + }); + await game.phaseInterceptor.whenAboutToRun(EncounterPhase); + expect(game.scene.getPlayerParty()[0].species.speciesId).toBe(Species.NIDORAN_M); + }, 20000); +}); diff --git a/src/test/ui/starter-select.test.ts b/test/ui/starter-select.test.ts similarity index 100% rename from src/test/ui/starter-select.test.ts rename to test/ui/starter-select.test.ts diff --git a/src/test/ui/transfer-item.test.ts b/test/ui/transfer-item.test.ts similarity index 100% rename from src/test/ui/transfer-item.test.ts rename to test/ui/transfer-item.test.ts diff --git a/src/test/ui/type-hints.test.ts b/test/ui/type-hints.test.ts similarity index 100% rename from src/test/ui/type-hints.test.ts rename to test/ui/type-hints.test.ts diff --git a/src/test/utils/TextInterceptor.ts b/test/utils/TextInterceptor.ts similarity index 100% rename from src/test/utils/TextInterceptor.ts rename to test/utils/TextInterceptor.ts diff --git a/src/test/utils/errorInterceptor.ts b/test/utils/errorInterceptor.ts similarity index 100% rename from src/test/utils/errorInterceptor.ts rename to test/utils/errorInterceptor.ts diff --git a/src/test/utils/fakeMobile.html b/test/utils/fakeMobile.html similarity index 100% rename from src/test/utils/fakeMobile.html rename to test/utils/fakeMobile.html diff --git a/src/test/utils/gameManager.ts b/test/utils/gameManager.ts similarity index 99% rename from src/test/utils/gameManager.ts rename to test/utils/gameManager.ts index b2015700c9b..346464f0139 100644 --- a/src/test/utils/gameManager.ts +++ b/test/utils/gameManager.ts @@ -22,8 +22,8 @@ import { TitlePhase } from "#app/phases/title-phase"; import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { TurnInitPhase } from "#app/phases/turn-init-phase"; import { TurnStartPhase } from "#app/phases/turn-start-phase"; -import ErrorInterceptor from "#app/test/utils/errorInterceptor"; -import type InputsHandler from "#app/test/utils/inputsHandler"; +import ErrorInterceptor from "#test/utils/errorInterceptor"; +import type InputsHandler from "#test/utils/inputsHandler"; import type BallUiHandler from "#app/ui/ball-ui-handler"; import type BattleMessageUiHandler from "#app/ui/battle-message-ui-handler"; import type CommandUiHandler from "#app/ui/command-ui-handler"; diff --git a/src/test/utils/gameManagerUtils.ts b/test/utils/gameManagerUtils.ts similarity index 100% rename from src/test/utils/gameManagerUtils.ts rename to test/utils/gameManagerUtils.ts diff --git a/src/test/utils/gameWrapper.ts b/test/utils/gameWrapper.ts similarity index 99% rename from src/test/utils/gameWrapper.ts rename to test/utils/gameWrapper.ts index ca5a67f901a..98ab5962aa3 100644 --- a/src/test/utils/gameWrapper.ts +++ b/test/utils/gameWrapper.ts @@ -23,7 +23,7 @@ import KeyboardPlugin = Phaser.Input.Keyboard.KeyboardPlugin; import GamepadPlugin = Phaser.Input.Gamepad.GamepadPlugin; import EventEmitter = Phaser.Events.EventEmitter; import UpdateList = Phaser.GameObjects.UpdateList; -import { version } from "../../../package.json"; +import { version } from "#app/package.json"; import { MockTimedEventManager } from "./mocks/mockTimedEventManager"; Object.defineProperty(window, "localStorage", { diff --git a/src/test/utils/helpers/challengeModeHelper.ts b/test/utils/helpers/challengeModeHelper.ts similarity index 98% rename from src/test/utils/helpers/challengeModeHelper.ts rename to test/utils/helpers/challengeModeHelper.ts index 4b5a38e72dc..a806355aeaa 100644 --- a/src/test/utils/helpers/challengeModeHelper.ts +++ b/test/utils/helpers/challengeModeHelper.ts @@ -4,7 +4,7 @@ import overrides from "#app/overrides"; import { EncounterPhase } from "#app/phases/encounter-phase"; import { SelectStarterPhase } from "#app/phases/select-starter-phase"; import { Mode } from "#app/ui/ui"; -import { generateStarter } from "../gameManagerUtils"; +import { generateStarter } from "#app/gameManagerUtils"; import { GameManagerHelper } from "./gameManagerHelper"; import type { Challenge } from "#app/data/challenge"; import { CommandPhase } from "#app/phases/command-phase"; diff --git a/src/test/utils/helpers/classicModeHelper.ts b/test/utils/helpers/classicModeHelper.ts similarity index 97% rename from src/test/utils/helpers/classicModeHelper.ts rename to test/utils/helpers/classicModeHelper.ts index 40c3d518f1c..e233ac5d0ee 100644 --- a/src/test/utils/helpers/classicModeHelper.ts +++ b/test/utils/helpers/classicModeHelper.ts @@ -7,7 +7,7 @@ import { EncounterPhase } from "#app/phases/encounter-phase"; import { SelectStarterPhase } from "#app/phases/select-starter-phase"; import { TurnInitPhase } from "#app/phases/turn-init-phase"; import { Mode } from "#app/ui/ui"; -import { generateStarter } from "../gameManagerUtils"; +import { generateStarter } from "#app/gameManagerUtils"; import { GameManagerHelper } from "./gameManagerHelper"; /** diff --git a/src/test/utils/helpers/dailyModeHelper.ts b/test/utils/helpers/dailyModeHelper.ts similarity index 100% rename from src/test/utils/helpers/dailyModeHelper.ts rename to test/utils/helpers/dailyModeHelper.ts diff --git a/src/test/utils/helpers/gameManagerHelper.ts b/test/utils/helpers/gameManagerHelper.ts similarity index 80% rename from src/test/utils/helpers/gameManagerHelper.ts rename to test/utils/helpers/gameManagerHelper.ts index 85d7bc0df97..0aec125a315 100644 --- a/src/test/utils/helpers/gameManagerHelper.ts +++ b/test/utils/helpers/gameManagerHelper.ts @@ -1,4 +1,4 @@ -import type GameManager from "../gameManager"; +import type GameManager from "#app/gameManager"; /** * Base class for defining all game helpers. diff --git a/src/test/utils/helpers/modifiersHelper.ts b/test/utils/helpers/modifiersHelper.ts similarity index 100% rename from src/test/utils/helpers/modifiersHelper.ts rename to test/utils/helpers/modifiersHelper.ts diff --git a/src/test/utils/helpers/moveHelper.ts b/test/utils/helpers/moveHelper.ts similarity index 100% rename from src/test/utils/helpers/moveHelper.ts rename to test/utils/helpers/moveHelper.ts diff --git a/src/test/utils/helpers/overridesHelper.ts b/test/utils/helpers/overridesHelper.ts similarity index 100% rename from src/test/utils/helpers/overridesHelper.ts rename to test/utils/helpers/overridesHelper.ts diff --git a/src/test/utils/helpers/reloadHelper.ts b/test/utils/helpers/reloadHelper.ts similarity index 98% rename from src/test/utils/helpers/reloadHelper.ts rename to test/utils/helpers/reloadHelper.ts index 5f516584873..39758d69676 100644 --- a/src/test/utils/helpers/reloadHelper.ts +++ b/test/utils/helpers/reloadHelper.ts @@ -6,7 +6,7 @@ import { BattleStyle } from "#app/enums/battle-style"; import { CommandPhase } from "#app/phases/command-phase"; import { TurnInitPhase } from "#app/phases/turn-init-phase"; import type { SessionSaveData } from "#app/system/game-data"; -import type GameManager from "../gameManager"; +import type GameManager from "#app/gameManager"; /** * Helper to allow reloading sessions in unit tests. diff --git a/src/test/utils/helpers/settingsHelper.ts b/test/utils/helpers/settingsHelper.ts similarity index 100% rename from src/test/utils/helpers/settingsHelper.ts rename to test/utils/helpers/settingsHelper.ts diff --git a/src/test/utils/inputsHandler.ts b/test/utils/inputsHandler.ts similarity index 100% rename from src/test/utils/inputsHandler.ts rename to test/utils/inputsHandler.ts diff --git a/src/test/utils/mocks/mockClock.ts b/test/utils/mocks/mockClock.ts similarity index 100% rename from src/test/utils/mocks/mockClock.ts rename to test/utils/mocks/mockClock.ts diff --git a/src/test/utils/mocks/mockConsoleLog.ts b/test/utils/mocks/mockConsoleLog.ts similarity index 100% rename from src/test/utils/mocks/mockConsoleLog.ts rename to test/utils/mocks/mockConsoleLog.ts diff --git a/src/test/utils/mocks/mockFetch.ts b/test/utils/mocks/mockFetch.ts similarity index 100% rename from src/test/utils/mocks/mockFetch.ts rename to test/utils/mocks/mockFetch.ts diff --git a/src/test/utils/mocks/mockGameObject.ts b/test/utils/mocks/mockGameObject.ts similarity index 100% rename from src/test/utils/mocks/mockGameObject.ts rename to test/utils/mocks/mockGameObject.ts diff --git a/src/test/utils/mocks/mockGameObjectCreator.ts b/test/utils/mocks/mockGameObjectCreator.ts similarity index 100% rename from src/test/utils/mocks/mockGameObjectCreator.ts rename to test/utils/mocks/mockGameObjectCreator.ts diff --git a/src/test/utils/mocks/mockLoader.ts b/test/utils/mocks/mockLoader.ts similarity index 100% rename from src/test/utils/mocks/mockLoader.ts rename to test/utils/mocks/mockLoader.ts diff --git a/src/test/utils/mocks/mockLocalStorage.ts b/test/utils/mocks/mockLocalStorage.ts similarity index 100% rename from src/test/utils/mocks/mockLocalStorage.ts rename to test/utils/mocks/mockLocalStorage.ts diff --git a/src/test/utils/mocks/mockTextureManager.ts b/test/utils/mocks/mockTextureManager.ts similarity index 100% rename from src/test/utils/mocks/mockTextureManager.ts rename to test/utils/mocks/mockTextureManager.ts diff --git a/src/test/utils/mocks/mockTimedEventManager.ts b/test/utils/mocks/mockTimedEventManager.ts similarity index 100% rename from src/test/utils/mocks/mockTimedEventManager.ts rename to test/utils/mocks/mockTimedEventManager.ts diff --git a/src/test/utils/mocks/mockVideoGameObject.ts b/test/utils/mocks/mockVideoGameObject.ts similarity index 100% rename from src/test/utils/mocks/mockVideoGameObject.ts rename to test/utils/mocks/mockVideoGameObject.ts diff --git a/src/test/utils/mocks/mocksContainer/mockContainer.ts b/test/utils/mocks/mocksContainer/mockContainer.ts similarity index 98% rename from src/test/utils/mocks/mocksContainer/mockContainer.ts rename to test/utils/mocks/mocksContainer/mockContainer.ts index f0198535e7b..a37ffbddd9b 100644 --- a/src/test/utils/mocks/mocksContainer/mockContainer.ts +++ b/test/utils/mocks/mocksContainer/mockContainer.ts @@ -1,5 +1,5 @@ import type MockTextureManager from "#test/utils/mocks/mockTextureManager"; -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; export default class MockContainer implements MockGameObject { protected x; diff --git a/src/test/utils/mocks/mocksContainer/mockGraphics.ts b/test/utils/mocks/mocksContainer/mockGraphics.ts similarity index 96% rename from src/test/utils/mocks/mocksContainer/mockGraphics.ts rename to test/utils/mocks/mocksContainer/mockGraphics.ts index 2b4a33b5e4c..24b42fcfc6f 100644 --- a/src/test/utils/mocks/mocksContainer/mockGraphics.ts +++ b/test/utils/mocks/mocksContainer/mockGraphics.ts @@ -1,4 +1,4 @@ -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; export default class MockGraphics implements MockGameObject { private scene; diff --git a/src/test/utils/mocks/mocksContainer/mockImage.ts b/test/utils/mocks/mocksContainer/mockImage.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockImage.ts rename to test/utils/mocks/mocksContainer/mockImage.ts diff --git a/src/test/utils/mocks/mocksContainer/mockNineslice.ts b/test/utils/mocks/mocksContainer/mockNineslice.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockNineslice.ts rename to test/utils/mocks/mocksContainer/mockNineslice.ts diff --git a/src/test/utils/mocks/mocksContainer/mockPolygon.ts b/test/utils/mocks/mocksContainer/mockPolygon.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockPolygon.ts rename to test/utils/mocks/mocksContainer/mockPolygon.ts diff --git a/src/test/utils/mocks/mocksContainer/mockRectangle.ts b/test/utils/mocks/mocksContainer/mockRectangle.ts similarity index 96% rename from src/test/utils/mocks/mocksContainer/mockRectangle.ts rename to test/utils/mocks/mocksContainer/mockRectangle.ts index e4bca76b8fc..3b7e62886cb 100644 --- a/src/test/utils/mocks/mocksContainer/mockRectangle.ts +++ b/test/utils/mocks/mocksContainer/mockRectangle.ts @@ -1,4 +1,4 @@ -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; export default class MockRectangle implements MockGameObject { private fillColor; diff --git a/src/test/utils/mocks/mocksContainer/mockSprite.ts b/test/utils/mocks/mocksContainer/mockSprite.ts similarity index 98% rename from src/test/utils/mocks/mocksContainer/mockSprite.ts rename to test/utils/mocks/mocksContainer/mockSprite.ts index 6d851330a5e..60b39e57766 100644 --- a/src/test/utils/mocks/mocksContainer/mockSprite.ts +++ b/test/utils/mocks/mocksContainer/mockSprite.ts @@ -1,5 +1,5 @@ import Phaser from "phaser"; -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; import Sprite = Phaser.GameObjects.Sprite; import Frame = Phaser.Textures.Frame; diff --git a/src/test/utils/mocks/mocksContainer/mockText.ts b/test/utils/mocks/mocksContainer/mockText.ts similarity index 99% rename from src/test/utils/mocks/mocksContainer/mockText.ts rename to test/utils/mocks/mocksContainer/mockText.ts index 5550e801386..da1ba34ac2c 100644 --- a/src/test/utils/mocks/mocksContainer/mockText.ts +++ b/test/utils/mocks/mocksContainer/mockText.ts @@ -1,5 +1,5 @@ import UI from "#app/ui/ui"; -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; export default class MockText implements MockGameObject { private phaserText; diff --git a/src/test/utils/mocks/mocksContainer/mockTexture.ts b/test/utils/mocks/mocksContainer/mockTexture.ts similarity index 94% rename from src/test/utils/mocks/mocksContainer/mockTexture.ts rename to test/utils/mocks/mocksContainer/mockTexture.ts index 57c87df23be..a2400a3514d 100644 --- a/src/test/utils/mocks/mocksContainer/mockTexture.ts +++ b/test/utils/mocks/mocksContainer/mockTexture.ts @@ -1,5 +1,5 @@ import type MockTextureManager from "#test/utils/mocks/mockTextureManager"; -import type { MockGameObject } from "../mockGameObject"; +import type { MockGameObject } from "#app/mockGameObject"; /** diff --git a/src/test/utils/phaseInterceptor.ts b/test/utils/phaseInterceptor.ts similarity index 99% rename from src/test/utils/phaseInterceptor.ts rename to test/utils/phaseInterceptor.ts index d60e0e78373..12d069f6c0e 100644 --- a/src/test/utils/phaseInterceptor.ts +++ b/test/utils/phaseInterceptor.ts @@ -1,5 +1,5 @@ import { Phase } from "#app/phase"; -import ErrorInterceptor from "#app/test/utils/errorInterceptor"; +import ErrorInterceptor from "#test/utils/errorInterceptor"; import { AttemptRunPhase } from "#app/phases/attempt-run-phase"; import { BattleEndPhase } from "#app/phases/battle-end-phase"; import { BerryPhase } from "#app/phases/berry-phase"; diff --git a/src/test/utils/saves/data_new.prsv b/test/utils/saves/data_new.prsv similarity index 100% rename from src/test/utils/saves/data_new.prsv rename to test/utils/saves/data_new.prsv diff --git a/src/test/utils/saves/everything.prsv b/test/utils/saves/everything.prsv similarity index 100% rename from src/test/utils/saves/everything.prsv rename to test/utils/saves/everything.prsv diff --git a/src/test/utils/testUtils.ts b/test/utils/testUtils.ts similarity index 100% rename from src/test/utils/testUtils.ts rename to test/utils/testUtils.ts diff --git a/src/test/vitest.setup.ts b/test/vitest.setup.ts similarity index 97% rename from src/test/vitest.setup.ts rename to test/vitest.setup.ts index eb2c1e4b9cf..44a304f52f2 100644 --- a/src/test/vitest.setup.ts +++ b/test/vitest.setup.ts @@ -45,7 +45,7 @@ vi.mock("i18next", async (importOriginal) => { const filename = req.params[0]; try { - const json = await import(`../../public/locales/en/${req.params[0]}`); + const json = await import(`public/locales/en/${req.params[0]}`); console.log("Loaded locale", filename); return HttpResponse.json(json); } catch (err) { diff --git a/tsconfig.json b/tsconfig.json index 0ec945df4ee..6bb0ae51c1b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,12 +8,12 @@ "strictNullChecks": true, "sourceMap": false, "strict": false, - "rootDir": "./src", + "rootDir": ".", "baseUrl": "./src", "paths": { "#enums/*": ["./enums/*.ts"], "#app/*": ["*.ts"], - "#test/*": ["./test/*.ts"] + "#test/*": ["../test/*.ts"] }, "outDir": "./build", "noEmit": true @@ -31,4 +31,4 @@ "vitest.config.ts", "vitest.workspace.ts", ] -} \ No newline at end of file +} diff --git a/vitest.config.ts b/vitest.config.ts index 9f9245687a1..b52c16ec00c 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,7 +5,7 @@ export default defineProject(({ mode }) => ({ ...defaultConfig, test: { testTimeout: 20000, - setupFiles: ["./src/test/fontFace.setup.ts", "./src/test/vitest.setup.ts"], + setupFiles: ["./test/fontFace.setup.ts", "./test/vitest.setup.ts"], server: { deps: { inline: ["vitest-canvas-mock"], @@ -33,8 +33,8 @@ export default defineProject(({ mode }) => ({ reporters: ["text-summary", "html"], }, name: "main", - include: ["./src/test/**/*.{test,spec}.ts"], - exclude: ["./src/test/pre.test.ts"], + include: ["./test/**/*.{test,spec}.ts"], + exclude: ["./test/pre.test.ts"], }, esbuild: { pure: mode === "production" ? ["console.log"] : [], diff --git a/vitest.workspace.ts b/vitest.workspace.ts index 38121942004..80d58515f7d 100644 --- a/vitest.workspace.ts +++ b/vitest.workspace.ts @@ -6,7 +6,7 @@ export default defineWorkspace([ ...defaultConfig, test: { name: "pre", - include: ["src/test/pre.test.ts"], + include: ["test/pre.test.ts"], environment: "jsdom", }, },