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)', path: '^(src)',
pathNot: [ pathNot: [
'[.](?:spec|test|setup|script)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$', '[.](?:spec|test|setup|script)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$',
'src/test' './test'
] ]
}, },
to: { to: {

View File

@ -84,19 +84,19 @@ async function runInteractive() {
let description; let description;
switch (type) { switch (type) {
case "move": case "move":
dir = path.join(__dirname, "src", "test", "moves"); dir = path.join(__dirname, "test", "moves");
description = `Moves - ${formattedName}`; description = `Moves - ${formattedName}`;
break; break;
case "ability": case "ability":
dir = path.join(__dirname, "src", "test", "abilities"); dir = path.join(__dirname, "test", "abilities");
description = `Abilities - ${formattedName}`; description = `Abilities - ${formattedName}`;
break; break;
case "item": case "item":
dir = path.join(__dirname, "src", "test", "items"); dir = path.join(__dirname, "test", "items");
description = `Items - ${formattedName}`; description = `Items - ${formattedName}`;
break; break;
case "mystery encounter": case "mystery encounter":
dir = path.join(__dirname, "src", "test", "mystery-encounter", "encounters"); dir = path.join(__dirname, "test", "mystery-encounter", "encounters");
description = `Mystery Encounter - ${formattedName}`; description = `Mystery Encounter - ${formattedName}`;
break; break;
default: default:

View File

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

View File

@ -1,6 +1,6 @@
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
import Phaser from "phaser"; import Phaser from "phaser";
import GameManager from "#app/test/utils/gameManager"; import GameManager from "#test/utils/gameManager";
import { Species } from "#enums/species"; import { Species } from "#enums/species";
import { TurnEndPhase } from "#app/phases/turn-end-phase"; import { TurnEndPhase } from "#app/phases/turn-end-phase";
import { Moves } from "#enums/moves"; import { Moves } from "#enums/moves";

View File

@ -1,7 +1,7 @@
import { BattlerIndex } from "#app/battle"; import { BattlerIndex } from "#app/battle";
import { ArenaTagSide } from "#app/data/arena-tag"; import { ArenaTagSide } from "#app/data/arena-tag";
import { allMoves } from "#app/data/move"; 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 { toDmgValue } from "#app/utils";
import { Abilities } from "#enums/abilities"; import { Abilities } from "#enums/abilities";
import { ArenaTagType } from "#enums/arena-tag-type"; import { ArenaTagType } from "#enums/arena-tag-type";

View File

@ -1,7 +1,7 @@
import * as battleScene from "#app/battle-scene"; import * as battleScene from "#app/battle-scene";
import { pokerogueApi } from "#app/plugins/api/pokerogue-api"; import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
import { describe, expect, it, vi } from "vitest"; import { describe, expect, it, vi } from "vitest";
import { initLoggedInUser, loggedInUser, updateUserInfo } from "../account"; import { initLoggedInUser, loggedInUser, updateUserInfo } from "#app/account";
describe("account", () => { describe("account", () => {
describe("initLoggedInUser", () => { describe("initLoggedInUser", () => {

View File

@ -4,7 +4,7 @@ import { NumberHolder } from "#app/utils";
import GameManager from "#test/utils/gameManager"; import GameManager from "#test/utils/gameManager";
import Phaser from "phaser"; import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; 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", () => { describe("check some Achievement related stuff", () => {
it ("should check Achievement creation", () => { it ("should check Achievement creation", () => {

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