Bertie690
0918985a63
[Test] Remove unneeded mockRestore
and testTimeout
calls in tests
...
https://github.com/pagefaultgames/pokerogue/pull/5927/
* Removed unnecessary test timeout parameters from test files
We set it in vitest config anyways
* Removed unneeded `mockRestore` calls
We call `restoreAllMocks` after each test runs anyhow
* Removed accidentall forgotten-about timeout
* Revdrt magic bounce test file for now
* Fixed ting
* Fixed bug
* Fixed import
* Update test/data/status_effect.test.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
* Update battle.test.ts
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>
* Ran bim
---------
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-15 00:48:16 -07:00
Bertie690
061c987265
[Test] Convert game.override
calls into chained line where possible
...
https://github.com/pagefaultgames/pokerogue/pull/5926
* Condensed all overrides into 1 line where possible
I hope I got them all...
* Fixed tests 0.5
* Cleaned up safeguard test to not use outdated code; fixed rest of errors
* Fixed illusion test
* Revert safeguart etst
* Fixed battle tets
* Fixed stuff
* Fixed things2.0
* Fixed import issues
* Revert changes outside of the tests directory
* Revert changes outside of the tests directory
---------
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-06-15 00:40:41 -07:00
Sirz Benjie
93745f14b7
[Refactor] Decouple phase system from battle-scene ( #5953 )
...
* Move phase logic into its own class
* Move ts ignore comment
2025-06-07 17:59:30 -07:00
NightKev
9dcb904649
[Misc] Improve enum naming ( #5933 )
...
* Rename `Abilities` to `AbilityId`
* Rename `abilities.ts` to `ability-id.ts`
* Rename `Moves` to `MoveId`
* Rename `moves.ts` to `move-id.ts`
* Rename `Species` to `SpeciesId`
* Rename `species.ts` to `species-id.ts`
* Rename `Biome` to `BiomeId`
* Rename `biome.ts` to `biome-id.ts`
* Replace `Abilities` with `AbilityId` in comments
* Replace `Biome` with `BiomeId` in comments
* Replace `Moves` with `MoveId` in comments
* Replace `Species` with `SpeciesId` in comments
2025-06-04 14:54:27 -07:00
damocleas
8f0eee9c4c
[Balance] [Mystery Encounter] Many Minor Mystery Encounter Adjustments ( #5726 )
...
* Update slumbering-snorlax-encounter.ts
* Add Slumbering Snorlax to Tall Grass, remove Absolute Avarice from Plains
* Update absolute-avarice-encounter.ts
* Update absolute-avarice-encounter.ts
* Update slumbering-snorlax-encounter.ts
* Update slumbering-snorlax-encounter.ts
* Update the-expert-pokemon-breeder-encounter.ts
* Update slumbering-snorlax-encounter.ts nature
* Update bug-type-superfan-encounter.ts move reward
* Update bug-type-superfan-encounter.ts moves again
* fix encounter waves
* Update absolute-avarice-encounter.test.ts
* add Nature import
* Update bug-type-superfan-encounter.test.ts
* greedent moves
* test moves
* Updated mysterious-chest-encounter.ts trap/reward chance
* swapped Macho Brace stats, +2 / 10% for HP stats and +1 / 5% for all else
* Update bug-type-superfan-encounter.ts moves
* Update the-expert-pokemon-breeder-encounter.ts tera
* Update bug-type-superfan-encounter.test.ts fix test
2025-05-02 01:11:02 -04:00
NightKev
db850c79cd
[Refactor] Moveset arrays can no longer hold null
values ( #4919 )
...
* Pokemon movesets no longer allow `null` values
* Clean up all the bangs caused by movesets allowing `null`
* Pokemon movesets no longer allow `null` values
* Clean up all the bangs caused by movesets allowing `null`
* Fix merge issues
* Remove various unnecessary `?`
* Apply biome
* Fix `global-trade-system-encounter.ts`
* Fix merge issue
* Remove unnecessary parentheses
* Remove missed `?`
* Match formatting of `pokemon.ts`
2025-03-26 19:12:54 -07:00
Sirz Benjie
408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter ( #5495 )
...
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00
Sirz Benjie
a51a504155
[Test] Move test folder out of src ( #5398 )
...
* move test folder
* Update vitest files
* rename test/utils to test/testUtils
* Remove stray utils/gameManager
Got put back from a rebase
2025-02-22 22:52:07 -06:00