make berries-abound test more robust

the "should reward the player with X berries based on wave" test was failing due to berry max stacks and the party only having 1 pokemone.
Increased it to 3 to reduce that probability
This commit is contained in:
flx-sta 2024-09-19 22:33:48 -07:00
parent 63fba0dcae
commit 217bfd9dfc

View File

@ -116,9 +116,11 @@ describe("Berries Abound - Mystery Encounter", () => {
expect(enemyField[0].species.speciesId).toBe(speciesToSpawn); expect(enemyField[0].species.speciesId).toBe(speciesToSpawn);
}); });
// TODO: there is some severe test flakiness occurring for this file, needs to be looked at/addressed in separate issue /**
* Related issue-comment: {@link https://github.com/pagefaultgames/pokerogue/issues/4300#issuecomment-2362849444}
*/
it("should reward the player with X berries based on wave", async () => { it("should reward the player with X berries based on wave", async () => {
await game.runToMysteryEncounter(MysteryEncounterType.BERRIES_ABOUND, defaultParty); await game.runToMysteryEncounter(MysteryEncounterType.BERRIES_ABOUND, [Species.PYUKUMUKU, Species.MAGIKARP, Species.PIKACHU]);
const numBerries = game.scene.currentBattle.mysteryEncounter!.misc.numBerries; const numBerries = game.scene.currentBattle.mysteryEncounter!.misc.numBerries;