Files
supabase/packages/ai-commands/test/extensions.d.ts
Ivan Vasilov 8693222124 chore: AI-commands tests with pnpm (#31250)
* Remove jest and add vitest in its place. Refactor the jest setup into vitest.

* Modify the expect extensions to work with vitest.

* FIx the tests.
2024-12-20 17:32:19 +01:00

11 lines
254 B
TypeScript

import 'vitest'
interface CustomMatchers<R = unknown> {
toMatchCriteria(criteria: string): R
}
declare module 'vitest' {
interface Assertion<T = any> extends CustomMatchers<T> {}
interface AsymmetricMatchersContaining extends CustomMatchers {}
}