pokerogue/test/abilities
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
..
ability-activation-order.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
ability-duplication.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
ability-timing.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
analytic.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
anger-point.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
arena-trap.test.ts [Test] Improved tests for arena trap (#6209) 2025-08-08 01:00:34 +00:00
aroma-veil.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
aura-break.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
battery.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
battle-bond.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
beast-boost.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
commander.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
competitive.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
contrary.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
corrosion.test.ts [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
costar.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
cud-chew.test.ts [Test] Revamped MockConsoleLog with color support (#6218) 2025-09-07 09:18:47 -05:00
dancer.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
defiant.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
desolate-land.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
disguise.test.ts [Refactor] Remove null from PhaseManager.currentPhase signature 2025-09-05 09:28:35 -07:00
dry-skin.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
early-bird.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
embody-aspect.test.ts [Ability] Embody Aspect now triggers on switch-in while Terastallized (#6294) 2025-08-20 20:10:54 -05:00
flash-fire.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
flower-gift.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
flower-veil.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
forecast.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
friend-guard.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
good-as-gold.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
gorilla-tactics.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
guard-dog.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
gulp-missile.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
harvest.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
healer.test.ts [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
heatproof.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
honey-gather.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
hustle.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
hyper-cutter.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
ice-face.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
illuminate.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
illusion.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
infiltrator.test.ts [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
innards-out.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
intimidate.test.ts [Bug/Ability] Fixed bugs with Intimidate triggers after reload/initial switch (#6212) 2025-08-24 14:09:16 -05:00
intrepid-sword.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
lightningrod.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
magic-bounce.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
magic-guard.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
mimicry.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
mirror-armor.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
mold-breaker.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
moody.test.ts [Bug] Moody Can't Lower Stats at +6 (#6481) 2025-09-06 06:46:13 +00:00
moxie.test.ts [Test] Removed deprecated functions from phase interceptor (#6195) 2025-08-19 19:54:40 -05:00
mummy.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
mycelium-might.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
neutralizing-gas.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
no-guard.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
normal-move-type-change.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
normalize.test.ts [Bug] Fix when variable move power is called (#6126) 2025-07-24 23:16:23 -07:00
oblivious.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
own-tempo.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
parental-bond.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
pastel-veil.test.ts [Test] Added/cleaned up tests for Pastel/Sweet Veil (#6374) 2025-09-05 21:42:44 -05:00
perish-body.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
power-construct.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
power-spot.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
protean-libero.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
protosynthesis.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
quick-draw.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
sand-spit.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
sand-veil.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
sap-sipper.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
schooling.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
screen-cleaner.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
seed-sower.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
serene-grace.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
sheer-force.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
shell-armor.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
shield-dust.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
shields-down.test.ts [Test] Cleaned up shields down tests; added more tests (#6216) 2025-08-20 08:57:46 -05:00
simple.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
speed-boost.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
stakeout.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
stall.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
status-immunity-ab-attrs.test.ts [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
steely-spirit.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
storm-drain.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
sturdy.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
super-luck.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
supreme-overlord.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
sweet-veil.test.ts [Test] Added/cleaned up tests for Pastel/Sweet Veil (#6374) 2025-09-05 21:42:44 -05:00
synchronize.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
tera-shell.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
trace.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
truant.test.ts [Bug] Fix Truant behavior (#6171) 2025-07-31 20:18:11 +00:00
unburden.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
unseen-fist.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
victory-star.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
volt-absorb.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
wandering-spirit.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
wimp-out.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
wind-power.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
wind-rider.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
wonder-skin.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
zen-mode.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
zero-to-hero.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00