stack/apps/e2e/tests/globals.d.ts
2024-12-10 00:11:13 -08:00

14 lines
504 B
TypeScript

import 'vitest';
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface CustomMatchers<R = unknown> {
toSatisfy: (predicate: (value: string) => boolean) => R,
}
declare module 'vitest' {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Assertion<T = any> extends CustomMatchers<T> {}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface AsymmetricMatchersContaining extends CustomMatchers {}
}