pokerogue/test/matchers.setup.ts
Bertie690 f3854abc16
[Test] Added custom equality matchers (#6157)
* Added rudimentary test matchers for `toEqualArrayUnsorted` and `toHaveTypes`

Might port the rest at a later date

* Actually run the effing setup matchers file + fixed ls lint to not be angy

* added dev dep

* Update .ls-lint.yml

* Update .ls-lint.yml

---------

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
2025-07-27 20:16:04 +00:00

15 lines
386 B
TypeScript

import { toEqualArrayUnsorted } from "#test/test-utils/matchers/to-equal-array-unsorted";
import { toHaveTypes } from "#test/test-utils/matchers/to-have-types";
import { expect } from "vitest";
/**
* @module
* Setup file for custom matchers.
* Make sure to define the call signatures in `test/@types/vitest.d.ts` too!
*/
expect.extend({
toEqualArrayUnsorted,
toHaveTypes,
});