mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 18:52:19 +02:00
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:
parent
63fba0dcae
commit
217bfd9dfc
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user