Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

394 B
Raw Blame
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 {}
}