pokerogue/test/moves/fusion_bolt.test.ts
Bertie690 0ff7cdd7e8 Removed unnecessary test timeout parameters from test files
We set it in vitest config anyways
2025-06-03 18:05:41 -04:00

50 lines
1.2 KiB
TypeScript

import { Abilities } from "#enums/abilities";
import { Moves } from "#enums/moves";
import { Species } from "#enums/species";
import GameManager from "#test/testUtils/gameManager";
import Phaser from "phaser";
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
describe("Moves - Fusion Bolt", () => {
let phaserGame: Phaser.Game;
let game: GameManager;
const fusionBolt = Moves.FUSION_BOLT;
beforeAll(() => {
phaserGame = new Phaser.Game({
type: Phaser.HEADLESS,
});
});
afterEach(() => {
game.phaseInterceptor.restoreOg();
});
beforeEach(() => {
game = new GameManager(phaserGame);
game.override
.moveset([fusionBolt])
.startingLevel(1)
.enemySpecies(Species.RESHIRAM)
.enemyAbility(Abilities.ROUGH_SKIN)
.enemyMoveset(Moves.SPLASH)
.battleStyle("single")
.startingWave(97)
.disableCrits();
});
it("should not make contact", async () => {
await game.classicMode.startBattle([Species.ZEKROM]);
const partyMember = game.scene.getPlayerPokemon()!;
const initialHp = partyMember.hp;
game.move.select(fusionBolt);
await game.toNextTurn();
expect(initialHp - partyMember.hp).toBe(0);
});
});