mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Merge branch 'beta' of https://github.com/pagefaultgames/pokerogue into new-modifier-rework
This commit is contained in:
commit
b38f740dff
@ -1,34 +0,0 @@
|
|||||||
import { initStatsKeys } from "#ui/game-stats-ui-handler";
|
|
||||||
import { describe, expect, it } from "vitest";
|
|
||||||
|
|
||||||
async function importModule() {
|
|
||||||
try {
|
|
||||||
initStatsKeys();
|
|
||||||
const { PokemonMove } = await import("#app/data/moves/pokemon-move");
|
|
||||||
const { SpeciesId: Species } = await import("#enums/species-id");
|
|
||||||
return {
|
|
||||||
PokemonMove,
|
|
||||||
Species,
|
|
||||||
};
|
|
||||||
// Dynamically import the module
|
|
||||||
} catch (error) {
|
|
||||||
// Log the error stack trace
|
|
||||||
console.error("Error during import:", error.stack);
|
|
||||||
// Rethrow the error to ensure the test fails
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
describe("tests to debug the import, with trace", () => {
|
|
||||||
it("import PokemonMove module", async () => {
|
|
||||||
const module = await importModule();
|
|
||||||
// Example assertion
|
|
||||||
expect(module.PokemonMove).toBeDefined();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("import Species module", async () => {
|
|
||||||
const module = await importModule();
|
|
||||||
// Example assertion
|
|
||||||
expect(module.Species).toBeDefined();
|
|
||||||
});
|
|
||||||
});
|
|
@ -59,8 +59,8 @@
|
|||||||
"./src/ui/battle-info/*.ts",
|
"./src/ui/battle-info/*.ts",
|
||||||
"./src/ui/containers/*.ts",
|
"./src/ui/containers/*.ts",
|
||||||
"./src/ui/handlers/*.ts",
|
"./src/ui/handlers/*.ts",
|
||||||
"./src/ui/utils/*.ts",
|
|
||||||
"./src/ui/settings/*.ts",
|
"./src/ui/settings/*.ts",
|
||||||
|
"./src/ui/utils/*.ts",
|
||||||
"./src/ui/*.ts"
|
"./src/ui/*.ts"
|
||||||
],
|
],
|
||||||
"#utils/*": ["./src/utils/*.ts"],
|
"#utils/*": ["./src/utils/*.ts"],
|
||||||
|
Loading…
Reference in New Issue
Block a user