mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
import type { Assertion, AsymmetricMatchersContaining } from 'vitest'
|
|
|
|
interface CustomMatchers<R = unknown> {
|
|
toBeRegExp(expected: string | RegExp): R
|
|
}
|
|
|
|
declare module 'vitest' {
|
|
interface Assertion<T = any> extends CustomMatchers<T> {}
|
|
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
|
}
|