add retries to quick-draw tests

This commit is contained in:
Felix Staud 2024-07-17 16:38:25 -07:00
parent 3e6183cd50
commit 6cbf73281c
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ describe("Abilities - Quick Draw", () => {
expect(pokemon.battleData.abilitiesApplied).contain(Abilities.QUICK_DRAW);
}, 20000);
test("does not triggered by non damage moves", async () => {
test("does not triggered by non damage moves", { timeout: 20000, retry: 5 }, async () => {
await game.startBattle([Species.SLOWBRO]);
const pokemon = game.scene.getPlayerPokemon();
@ -67,7 +67,7 @@ describe("Abilities - Quick Draw", () => {
expect(pokemon.isFainted()).toBe(true);
expect(enemy.isFainted()).toBe(false);
expect(pokemon.battleData.abilitiesApplied).not.contain(Abilities.QUICK_DRAW);
}, 20000);
});
test("does not increase priority", async () => {
vi.spyOn(Overrides, "OPP_MOVESET_OVERRIDE", "get").mockReturnValue(Array(4).fill(Moves.EXTREME_SPEED));