Files
hoppscotch/packages/hoppscotch-common/src/vitest.d.ts
2023-06-22 00:36:25 +05:30

14 lines
394 B
TypeScript

import type { Assertion, AsymmetricMatchersContaining } from "vitest"
interface CustomMatchers<R = any> {
toBeLeft(expected: unknown): R
toBeRight(): R
toEqualLeft(expected: unknown): R
toSubsetEqualRight(expected: unknown): R
}
declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
interface AsymmetricMatchersContaining extends CustomMatchers {}
}