We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CustomMatchers.d.ts
1 parent 6ec0d4e commit 01bcfccCopy full SHA for 01bcfcc
packages/toolkit/src/tests/utils/CustomMatchers.d.ts
@@ -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