pokerogue/src/test
NightKev 0107b1d47e
[Refactor] Create global scene variable (#4766)
* Replace various `scene` pass-arounds with global scene variable

* Modify tests

* Add scene back to `fade[in|out]()` calls

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>

* Fix Bug Superfan ME test

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>

* Re-enable fixed test

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>

* Rename `gScene` to `globalScene`

* Move `globalScene` to its own file to fix import/async issues

* Fix `SelectModifierPhase` tests

* Fix ME tests by removing `scene` from `expect()`s

* Resolve merge issues

* Remove tsdocs referencing `scene` params

Remove missed instances of `.scene`

* Remove unnecessary `globalScene` usage in `loading-scene.ts`

* Fix merge conflicts

* Attempt to fix circular import issue

* Found the source of the import issue

* Fix merge issues

---------

Co-authored-by: Moka <54149968+MokaStitcher@users.noreply.github.com>
2025-01-12 15:33:05 -08:00
..
abilities [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
achievements [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
arena [Refactor] Remove unnecessary re-exports (#4818) 2024-11-08 17:44:34 -05:00
battle [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
battlerTags [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
data Revert "[UI/UX] Refactor and enable seasonal splash messages (#5009)" (#5014) 2024-12-19 16:04:12 -08:00
eggs [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
field [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
inputs [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
items [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
moves [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
mystery-encounter [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
phases [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
plugins/api [Telemetry][Misc] Client-Side changes to log run results at the end of runs (#4834) 2024-11-10 00:37:09 -05:00
settingMenu [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
sprites add new lint rules....again 2024-10-04 13:08:31 +08:00
system [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
ui [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
utils [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
account.test.ts [Refactor] Pokerogue API client (#4583) 2024-11-04 15:57:21 -05:00
battle-scene.test.ts [Bug] Fix eggs having exploitable RNG (#3913) 2024-09-02 22:18:18 -04:00
boss-pokemon.test.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
daily_mode.test.ts [Refactor] Pokerogue API client (#4583) 2024-11-04 15:57:21 -05:00
endless_boss.test.ts add new lint rules....again 2024-10-04 13:08:31 +08:00
enemy_command.test.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
escape-calculations.test.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
evolution.test.ts [BUG] fix #5038 update shedinja's gender to genderless on evolution (#5039) 2024-12-29 20:09:11 -06:00
final_boss.test.ts [Refactor] Remove unnecessary re-exports (#4818) 2024-11-08 17:44:34 -05: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 [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
imports.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
internals.test.ts add new lint rules....again 2024-10-04 13:08:31 +08:00
misc.test.ts [Refactor] Pokerogue API client (#4583) 2024-11-04 15:57:21 -05:00
pre.test.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
reload.test.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00
vitest.setup.ts [Refactor] Create global scene variable (#4766) 2025-01-12 15:33:05 -08:00