move test folder

This commit is contained in:
Sirz Benjie 2025-02-22 18:27:30 -06:00
parent bd288ad862
commit f42b7d6b8f
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
403 changed files with 96 additions and 85 deletions

View File

@ -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: {

View File

@ -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:

View File

@ -52,7 +52,7 @@ export default [
},
{
name: "eslint-tests",
files: ["src/test/**/**.test.ts"],
files: ["./test/**/**.test.ts"],
languageOptions: {
parser: parser,
parserOptions: {

View File

@ -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";

View File

@ -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";

View File

@ -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", () => {

View File

@ -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", () => {

Some files were not shown because too many files have changed in this diff Show More