pokerogue/test/test-utils
Bertie690 9815c5eebf
[Test] Revamped MockConsoleLog with color support (#6218)
* Added mock console and fixed up many many things

* Cleaned up handling of colors and such

* Added minor comment

* Fix Focus Punch test

* Fix typo

* Remove redundant comment

* Update vitest.setup.ts

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

* Added color map inside new folder

* Made constants not object bc i was told to

* Update src/constants/colors.ts

* Removed all moves init check

* Removed import

* Fixed up some stuff + added aquamarine color to settings helper

* Added logging for test end

* Removed intentionally failing test

* Fixed console log to use inheritance to not override vitest's wrapping

* Added a custom Vitest reporter to not log the test name every 2 lines

* Moved coloration to a hook to prevent misplacing things

* Fixed import issue by copypasting vitest soure

* Removed intentionally failing test

look i need to check that `test:silent` works on github ok

* Added REUSE annotations to copied parts of source

* Fixed import issue

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-09-07 09:18:47 -05:00
..
helpers [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
matchers [Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338) 2025-09-05 21:50:37 -05:00
mocks [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
reporters [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
saves [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
setup [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
error-interceptor.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
fakeMobile.html [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
game-manager-utils.ts [Dev] Move various functions out of pokemon-species.ts (#6155) 2025-08-02 19:35:06 -07:00
game-manager.ts [Refactor] Remove null from PhaseManager.currentPhase signature 2025-09-05 09:28:35 -07:00
game-wrapper.ts [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
inputs-handler.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
listeners-manager.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
phase-interceptor.ts [Refactor] Remove null from PhaseManager.currentPhase signature 2025-09-05 09:28:35 -07:00
string-utils.ts [Test] Improved typing on BattlerTagData and ArenaTagData; improved test matchers (#6338) 2025-09-05 21:50:37 -05:00
test-file-initialization.ts [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
test-utils.ts [Test] Port over + augment remaining test matchers from pkty (#6159) 2025-08-02 15:35:06 -07:00
text-interceptor.ts [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00