mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 23:49:26 +02:00
* Partially ported over pkty matchers (WIP) * Cleaned up some more matchers * Fiexd up matchers * Fixed up remaining matchers * Removed the word "matcher" from the pkty matcher functions If we want them back we can always undo this commit and convert the other custom ones * Added wip spite test * Added `toHaveUsedPP` matcher * Fixed up docs and tests * Fixed spite test * Ran biome * Apply Biome * Reverted biome breaking i18next * Update src/typings/i18next.d.ts comment * Fixed log message to not be overly verbose * Added option to check for all PP used in pp matcher + cleaned up grudge tests * Fixed up tests * Fixed tests and such * Fix various TSDocs + missing TSDoc imports
40 lines
1.6 KiB
TypeScript
40 lines
1.6 KiB
TypeScript
import { toEqualArrayUnsorted } from "#test/test-utils/matchers/to-equal-array-unsorted";
|
|
import { toHaveAbilityApplied } from "#test/test-utils/matchers/to-have-ability-applied";
|
|
import { toHaveBattlerTag } from "#test/test-utils/matchers/to-have-battler-tag";
|
|
import { toHaveEffectiveStat } from "#test/test-utils/matchers/to-have-effective-stat";
|
|
import { toHaveFainted } from "#test/test-utils/matchers/to-have-fainted";
|
|
import { toHaveFullHp } from "#test/test-utils/matchers/to-have-full-hp";
|
|
import { toHaveHp } from "#test/test-utils/matchers/to-have-hp";
|
|
import { toHaveStatStage } from "#test/test-utils/matchers/to-have-stat-stage";
|
|
import { toHaveStatusEffect } from "#test/test-utils/matchers/to-have-status-effect";
|
|
import { toHaveTakenDamage } from "#test/test-utils/matchers/to-have-taken-damage";
|
|
import { toHaveTerrain } from "#test/test-utils/matchers/to-have-terrain";
|
|
import { toHaveTypes } from "#test/test-utils/matchers/to-have-types";
|
|
import { toHaveUsedMove } from "#test/test-utils/matchers/to-have-used-move";
|
|
import { toHaveUsedPP } from "#test/test-utils/matchers/to-have-used-pp";
|
|
import { toHaveWeather } from "#test/test-utils/matchers/to-have-weather";
|
|
import { expect } from "vitest";
|
|
|
|
/*
|
|
* Setup file for custom matchers.
|
|
* Make sure to define the call signatures in `test/@types/vitest.d.ts` too!
|
|
*/
|
|
|
|
expect.extend({
|
|
toEqualArrayUnsorted,
|
|
toHaveTypes,
|
|
toHaveUsedMove,
|
|
toHaveEffectiveStat,
|
|
toHaveTakenDamage,
|
|
toHaveWeather,
|
|
toHaveTerrain,
|
|
toHaveFullHp,
|
|
toHaveStatusEffect,
|
|
toHaveStatStage,
|
|
toHaveBattlerTag,
|
|
toHaveAbilityApplied,
|
|
toHaveHp,
|
|
toHaveFainted,
|
|
toHaveUsedPP,
|
|
});
|