From 282b0c82154e11b6f8bc9e67559e4f7a2eec9b95 Mon Sep 17 00:00:00 2001 From: Mumble <171087428+frutescens@users.noreply.github.com> Date: Sun, 1 Dec 2024 14:24:16 -0800 Subject: [PATCH] Added features to prevent test flakiness. (#4959) Co-authored-by: frutescens --- src/test/abilities/serene_grace.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/abilities/serene_grace.test.ts b/src/test/abilities/serene_grace.test.ts index a19b5c82546..6f9b2195a9c 100644 --- a/src/test/abilities/serene_grace.test.ts +++ b/src/test/abilities/serene_grace.test.ts @@ -25,10 +25,13 @@ describe("Abilities - Serene Grace", () => { beforeEach(() => { game = new GameManager(phaserGame); game.override + .disableCrits() .battleType("single") .ability(Abilities.SERENE_GRACE) - .moveset([ Moves.AIR_SLASH, Moves.TACKLE ]) + .moveset([ Moves.AIR_SLASH ]) + .enemySpecies(Species.ALOLA_GEODUDE) .enemyLevel(10) + .enemyAbility(Abilities.BALL_FETCH) .enemyMoveset([ Moves.SPLASH ]); });