mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 20:57:57 +01:00
test: add unit tests for the module (#892)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
10
test/vitest.d.ts
vendored
Normal file
10
test/vitest.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user