mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
* [Test] Added `toHaveArenaTagMatcher` + fixed prior matchers * Fixed imports and stuff * Removed accidental test file addition * More improvements and minor fixes * More semantic changes * Shuffled a few funcs around * More fixups to strings * Added `toHavePositionalTag` matcher * Applied reviews and fixed my godawful penmanship * Fix vitest.d.ts * Fix imports in `vitest.d.ts` --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
44 lines
1.8 KiB
TypeScript
44 lines
1.8 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 { toHaveArenaTag } from "#test/test-utils/matchers/to-have-arena-tag";
|
|
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 { toHavePositionalTag } from "#test/test-utils/matchers/to-have-positional-tag";
|
|
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,
|
|
toHaveWeather,
|
|
toHaveTerrain,
|
|
toHaveArenaTag,
|
|
toHavePositionalTag,
|
|
toHaveTypes,
|
|
toHaveUsedMove,
|
|
toHaveEffectiveStat,
|
|
toHaveStatusEffect,
|
|
toHaveStatStage,
|
|
toHaveBattlerTag,
|
|
toHaveAbilityApplied,
|
|
toHaveHp,
|
|
toHaveTakenDamage,
|
|
toHaveFullHp,
|
|
toHaveFainted,
|
|
toHaveUsedPP,
|
|
});
|