pokerogue/test
Sirz Benjie 8afedc33d7
[Refactor] [Ability] Ab attr apply type safety (#6002)
* [WIP] Refactor ability attribute apply args

* [WIP] update ability signatures

* Update callsites in pokemon.ts

* Update callsites in moves.ts

* Update abattr callsites in move-phase

* Update abattr callsites in battler-tags

Also removed stat drop ability application from cancelling ME stat boost effects

* format with biome and remove cancelled from weather lapse

* Update abattr callsites in MEP

* Update callsites in turn-start-phase

* Update abAttr callsites in misc phases

* Remove latent test functionality

* update ability attribute callsite in shield dust test

* update abattr callsite in winstrate challenge encounter

* Fix some tests to mock proper methods

* Remove improper condition in mimicry's ability application

* Fix improper simulated check in moody's apply method

* Pass source to postApplyDamage in pokemon.ts

* [wip] fix cud chew tests

* Make cud chew consumption not subclass postTurnAbAttr

* Fix regression in flower veil

* Update trySetStatus test in pokemon to respect new return value for undefined

* Remove empty, unused file

* Fix blockCrit method broken in merge

* Fix unnecessary attr type cast in move phase

* Address typing issue in safeguard test

* Improve documentation and get rid of ts-expect-error directive

* Minor comment/TSDoc updates and fixes

* Apply suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-22 18:23:08 -07:00
..
abilities [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
achievements [Test] Convert game.override calls into chained line where possible 2025-06-15 00:40:41 -07:00
arena [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
battle [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
battlerTags [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
data [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
eggs [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
field [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
inputs [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
items [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
moves [Refactor] [Ability] Ab attr apply type safety (#6002) 2025-06-22 18:23:08 -07:00
mystery-encounter [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
phases [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
plugins/api [Bug] Fix clear ignoring errors from server (#5722) 2025-04-29 23:55:42 -07:00
settingMenu [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
sprites [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
system [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
testUtils [Refactor] Refactor evo phase (#5735) 2025-06-22 18:11:38 -07:00
ui [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
account.test.ts [Refactor] Remove circular imports part 1 (#5663) 2025-04-19 11:57:03 +00:00
battle-scene.test.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
boss-pokemon.test.ts [Refactor] Rework evolution conditions and descriptions (#5679) 2025-06-16 05:57:51 -07:00
daily_mode.test.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
endless_boss.test.ts [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
enemy_command.test.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
escape-calculations.test.ts [Test] Remove unneeded mockRestore and testTimeout calls in tests 2025-06-15 00:48:16 -07:00
evolution.test.ts [Test] Convert game.override calls into chained line where possible 2025-06-15 00:40:41 -07:00
final_boss.test.ts [Test] Reworked crit override to allow for forced crits (#5738) 2025-06-16 05:36:09 -07:00
fontFace.setup.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
game-mode.test.ts [Test] Remove unneeded mockRestore and testTimeout calls in tests 2025-06-15 00:48:16 -07:00
imports.test.ts [Refactor] Remove circular deps 3 (#5959) 2025-06-09 16:24:13 -07:00
internals.test.ts [Misc] Improve enum naming (#5933) 2025-06-04 14:54:27 -07:00
misc.test.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
reload.test.ts [Test] Remove unneeded mockRestore and testTimeout calls in tests 2025-06-15 00:48:16 -07:00
utils.test.ts [Refactor/Bug/Ability] Reworked BattleData, fixed Rage Fist, Harvest, Belch + Implemented Cud Chew (#5655) 2025-05-02 00:06:07 -05:00
vitest.setup.ts [Biome] Add "no unused imports" rule (#5580) 2025-03-29 10:24:23 +00:00