Skip to content

Commit 01bcfcc

Browse files
committed
Add back CustomMatchers.d.ts ambient declaration file
1 parent 6ec0d4e commit 01bcfcc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { Assertion, AsymmetricMatchersContaining } from "vitest"
2+
3+
interface CustomMatchers<R = unknown> {
4+
toHaveConsoleOutput(expectedOutput: string): Promise<R>
5+
toMatchSequence(...matchers: Array<(arg: any) => boolean>): R
6+
}
7+
8+
declare module "vitest" {
9+
interface Assertion<T = any> extends CustomMatchers<T> {}
10+
interface AsymmetricMatchersContaining extends CustomMatchers {}
11+
}

0 commit comments

Comments
 (0)