pokerogue/src/test
NightKev 642b18e747
[Bug] Fix Pokemon not gaining HP when evolving (#3569)
* Don't recalculate stats that already exist

* add test to cover hp update after evo (#4)

- add evolution phase to phase interceptor
- add mock for video game object
- add returning video mock on add.video()

* add test to make sure pkm are not healed on evolve

* Stop on `EndEvolutionPhase` to prevent game state leak in tests

* Fix imports

* Remove `.js` from import

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>

* Add docs to mock class

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-08-30 20:21:56 -07:00
..
abilities [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
achievements [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
arena [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
battle [Challenge] Inverse battle challenge (#3525) 2024-08-29 19:59:33 +01:00
battlerTags [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
eggs Fix egg tests (memory use: ~2.4G -> ~550M) (#3757) 2024-08-25 19:07:06 +01:00
evolutions [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
field [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
inputs [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
items [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
localization [Localization] Migrate translation files to json (#3709) 2024-08-23 20:52:09 +01:00
moves Fix turn order issue in Miracle Eye test (#3912) 2024-08-30 15:33:35 -07:00
phases [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
settingMenu [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
sprites [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
ui [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
utils [Bug] Fix Pokemon not gaining HP when evolving (#3569) 2024-08-30 20:21:56 -07:00
account.spec.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-scene.test.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-stat.spec.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
daily_mode.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
endless_boss.test.ts Disable endless boss passives (#3451) 2024-08-11 19:40:47 +01:00
evolution.test.ts [Bug] Fix Pokemon not gaining HP when evolving (#3569) 2024-08-30 20:21:56 -07:00
final_boss.test.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
fontFace.setup.ts tests: add mock for FontFace and it to vitest setup (#1591) 2024-05-30 04:44:36 +01:00
game-mode.test.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
imports.test.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
internals.test.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
pre.test.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
vitest.setup.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00