diff --git a/.dependency-cruiser.cjs b/.dependency-cruiser.cjs index 25f7b64ce85..8c6dff55c8c 100644 --- a/.dependency-cruiser.cjs +++ b/.dependency-cruiser.cjs @@ -156,7 +156,7 @@ module.exports = { path: '^(src)', pathNot: [ '[.](?:spec|test|setup|script)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$', - 'src/test' + './test' ] }, to: { diff --git a/create-test-boilerplate.js b/create-test-boilerplate.js index a365999c623..04e1a29cb5f 100644 --- a/create-test-boilerplate.js +++ b/create-test-boilerplate.js @@ -84,19 +84,19 @@ async function runInteractive() { let description; switch (type) { case "move": - dir = path.join(__dirname, "src", "test", "moves"); + dir = path.join(__dirname, "test", "moves"); description = `Moves - ${formattedName}`; break; case "ability": - dir = path.join(__dirname, "src", "test", "abilities"); + dir = path.join(__dirname, "test", "abilities"); description = `Abilities - ${formattedName}`; break; case "item": - dir = path.join(__dirname, "src", "test", "items"); + dir = path.join(__dirname, "test", "items"); description = `Items - ${formattedName}`; break; case "mystery encounter": - dir = path.join(__dirname, "src", "test", "mystery-encounter", "encounters"); + dir = path.join(__dirname, "test", "mystery-encounter", "encounters"); description = `Mystery Encounter - ${formattedName}`; break; default: diff --git a/eslint.config.js b/eslint.config.js index 0da9cc604bf..34b638be98f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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 98f30c60505..a85c76f14cf 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/mummy.test.ts b/test/abilities/mummy.test.ts similarity index 100% rename from src/test/abilities/mummy.test.ts rename to test/abilities/mummy.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/trace.test.ts b/test/abilities/trace.test.ts similarity index 100% rename from src/test/abilities/trace.test.ts rename to test/abilities/trace.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/wandering_spirit.test.ts b/test/abilities/wandering_spirit.test.ts similarity index 100% rename from src/test/abilities/wandering_spirit.test.ts rename to test/abilities/wandering_spirit.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 90cd3d62af5..c4a9391f038 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 { toDmgValue } from "#app/utils"; import { Abilities } from "#enums/abilities"; import { ArenaTagType } from "#enums/arena-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/ability_swap.test.ts b/test/battle/ability_swap.test.ts similarity index 100% rename from src/test/battle/ability_swap.test.ts rename to test/battle/ability_swap.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 98% rename from src/test/battle/battle.test.ts rename to test/battle/battle.test.ts index bd84cb2fd3b..8d92ddd6e1d 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"; @@ -122,7 +122,7 @@ describe("Test Battle Phase", () => { }, 20000); it("load 100% data file", async () => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; 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 99% rename from src/test/eggs/egg.test.ts rename to test/eggs/egg.test.ts index d7ed07dd151..a9cfc7ecb3d 100644 --- a/src/test/eggs/egg.test.ts +++ b/test/eggs/egg.test.ts @@ -29,7 +29,7 @@ describe("Egg Generation Tests", () => { }); beforeEach(async () => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./test/utils/saves/everything.prsv"); }); it("should return Kyogre for the 10th of June", () => { diff --git a/src/test/eggs/manaphy-egg.test.ts b/test/eggs/manaphy-egg.test.ts similarity index 98% rename from src/test/eggs/manaphy-egg.test.ts rename to test/eggs/manaphy-egg.test.ts index 5bb5b790201..37dfb066c3f 100644 --- a/src/test/eggs/manaphy-egg.test.ts +++ b/test/eggs/manaphy-egg.test.ts @@ -25,7 +25,7 @@ describe("Manaphy Eggs", () => { }); beforeEach(async () => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./test/utils/saves/everything.prsv"); /** * In our tests, we will perform an "RNG sweep" by letting rngSweepProgress 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 100% rename from src/test/field/pokemon.test.ts rename to test/field/pokemon.test.ts 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 100% rename from src/test/moves/baneful_bunker.test.ts rename to test/moves/baneful_bunker.test.ts 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 100% rename from src/test/moves/crafty_shield.test.ts rename to test/moves/crafty_shield.test.ts 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/doodle.test.ts b/test/moves/doodle.test.ts similarity index 100% rename from src/test/moves/doodle.test.ts rename to test/moves/doodle.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/entrainment.test.ts b/test/moves/entrainment.test.ts similarity index 100% rename from src/test/moves/entrainment.test.ts rename to test/moves/entrainment.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 100% rename from src/test/moves/fell_stinger.test.ts rename to test/moves/fell_stinger.test.ts 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 100% rename from src/test/moves/lucky_chant.test.ts rename to test/moves/lucky_chant.test.ts 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 100% rename from src/test/moves/mat_block.test.ts rename to test/moves/mat_block.test.ts 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 100% rename from src/test/moves/parting_shot.test.ts rename to test/moves/parting_shot.test.ts 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 100% rename from src/test/moves/protect.test.ts rename to test/moves/protect.test.ts 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/quash.test.ts b/test/moves/quash.test.ts similarity index 100% rename from src/test/moves/quash.test.ts rename to test/moves/quash.test.ts diff --git a/src/test/moves/quick_guard.test.ts b/test/moves/quick_guard.test.ts similarity index 100% rename from src/test/moves/quick_guard.test.ts rename to test/moves/quick_guard.test.ts 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/revival_blessing.test.ts b/test/moves/revival_blessing.test.ts similarity index 100% rename from src/test/moves/revival_blessing.test.ts rename to test/moves/revival_blessing.test.ts diff --git a/src/test/moves/role_play.test.ts b/test/moves/role_play.test.ts similarity index 100% rename from src/test/moves/role_play.test.ts rename to test/moves/role_play.test.ts 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/simple_beam.test.ts b/test/moves/simple_beam.test.ts similarity index 100% rename from src/test/moves/simple_beam.test.ts rename to test/moves/simple_beam.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/skill_swap.test.ts b/test/moves/skill_swap.test.ts similarity index 100% rename from src/test/moves/skill_swap.test.ts rename to test/moves/skill_swap.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 ffe935aa61b..d488be6ea5d 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 100% rename from src/test/moves/wide_guard.test.ts rename to test/moves/wide_guard.test.ts 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 f95450bbf44..863e702d507 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 ceb457666d7..3215fac9fa4 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 8121916a4d7..f8b760926c1 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 60780984014..d52e1b50c93 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..a1e65ed2615 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,7 +5,7 @@ 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 { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode"; 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 06bd382879f..710e4e17ce6 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 92% rename from src/test/settingMenu/helpers/menuManip.ts rename to test/settingMenu/helpers/menuManip.ts index 0b1f48525f1..1d53b845047 100644 --- a/src/test/settingMenu/helpers/menuManip.ts +++ b/test/settingMenu/helpers/menuManip.ts @@ -1,4 +1,15 @@ -import { assign, canIAssignThisKey, canIDeleteThisKey, canIOverrideThisSetting, deleteBind, getIconWithKeycode, getIconWithSettingName, getKeyWithKeycode, getKeyWithSettingName, getSettingNameWithKeycode } from "#app/configs/inputs/configHandler"; +import { + assign, + canIAssignThisKey, + canIDeleteThisKey, + canIOverrideThisSetting, + deleteBind, + getIconWithKeycode, + getIconWithSettingName, + getKeyWithKeycode, + getKeyWithSettingName, + getSettingNameWithKeycode, +} from "#app/configs/inputs/configHandler"; import { SettingKeyboard } from "#app/system/settings/settings-keyboard"; import { expect } from "vitest"; 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..43749015e1c 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 "../../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 100% rename from src/test/ui/battle_info.test.ts rename to test/ui/battle_info.test.ts diff --git a/src/test/ui/starter-select.test.ts b/test/ui/starter-select.test.ts similarity index 98% rename from src/test/ui/starter-select.test.ts rename to test/ui/starter-select.test.ts index 15b5f643539..aff2cd47269 100644 --- a/src/test/ui/starter-select.test.ts +++ b/test/ui/starter-select.test.ts @@ -38,7 +38,7 @@ describe("UI - Starter select", () => { }); it("Bulbasaur - shiny - variant 2 male", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -98,7 +98,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - shiny - variant 2 female hardy overgrow", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -160,7 +160,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - shiny - variant 2 female lonely chlorophyl", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -225,7 +225,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - shiny - variant 2 female", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -286,7 +286,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - not shiny", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -346,7 +346,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - shiny - variant 1", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -408,7 +408,7 @@ describe("UI - Starter select", () => { }, 20000); it("Bulbasaur - shiny - variant 0", async() => { - await game.importData("src/test/utils/saves/everything.prsv"); + await game.importData("./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; @@ -469,7 +469,7 @@ describe("UI - Starter select", () => { }, 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"); + await game.importData("./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; @@ -533,7 +533,7 @@ describe("UI - Starter select", () => { }, 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"); + await game.importData("./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; 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 e8addcfc1d9..713ff3d9290 100644 --- a/src/test/utils/gameWrapper.ts +++ b/test/utils/gameWrapper.ts @@ -24,7 +24,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 "../../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 100% rename from src/test/utils/helpers/challengeModeHelper.ts rename to test/utils/helpers/challengeModeHelper.ts diff --git a/src/test/utils/helpers/classicModeHelper.ts b/test/utils/helpers/classicModeHelper.ts similarity index 100% rename from src/test/utils/helpers/classicModeHelper.ts rename to test/utils/helpers/classicModeHelper.ts 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 100% rename from src/test/utils/helpers/gameManagerHelper.ts rename to test/utils/helpers/gameManagerHelper.ts 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 100% rename from src/test/utils/helpers/reloadHelper.ts rename to test/utils/helpers/reloadHelper.ts 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 96% rename from src/test/utils/inputsHandler.ts rename to test/utils/inputsHandler.ts index e2591def447..d1c32ac9fd3 100644 --- a/src/test/utils/inputsHandler.ts +++ b/test/utils/inputsHandler.ts @@ -90,7 +90,7 @@ class Fakepad extends Phaser.Input.Gamepad.Gamepad { class FakeMobile { constructor() { - const fakeMobilePage = fs.readFileSync("./src/test/utils/fakeMobile.html", { encoding: "utf8", flag: "r" }); + const fakeMobilePage = fs.readFileSync("././test/utils/fakeMobile.html", { encoding: "utf8", flag: "r" }); const dom = new JSDOM(fakeMobilePage); Object.defineProperty(window, "document", { value: dom.window.document, 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 100% rename from src/test/utils/mocks/mocksContainer/mockContainer.ts rename to test/utils/mocks/mocksContainer/mockContainer.ts diff --git a/src/test/utils/mocks/mocksContainer/mockGraphics.ts b/test/utils/mocks/mocksContainer/mockGraphics.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockGraphics.ts rename to test/utils/mocks/mocksContainer/mockGraphics.ts 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 100% rename from src/test/utils/mocks/mocksContainer/mockRectangle.ts rename to test/utils/mocks/mocksContainer/mockRectangle.ts diff --git a/src/test/utils/mocks/mocksContainer/mockSprite.ts b/test/utils/mocks/mocksContainer/mockSprite.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockSprite.ts rename to test/utils/mocks/mocksContainer/mockSprite.ts diff --git a/src/test/utils/mocks/mocksContainer/mockText.ts b/test/utils/mocks/mocksContainer/mockText.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockText.ts rename to test/utils/mocks/mocksContainer/mockText.ts diff --git a/src/test/utils/mocks/mocksContainer/mockTexture.ts b/test/utils/mocks/mocksContainer/mockTexture.ts similarity index 100% rename from src/test/utils/mocks/mocksContainer/mockTexture.ts rename to test/utils/mocks/mocksContainer/mockTexture.ts 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 91f98e89ec3..4a22403c627 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..bc7db8ea591 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 +}