[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: update extending-matchers.md (#3557)

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>

authored by

sagargurtu
Vladimir
and committed by
GitHub
(Jun 20, 2023, 12:44 PM +0200) 45ca1380 edad9b19

+2
+2
docs/guide/extending-matchers.md
··· 26 26 If you are using TypeScript, since Vitest 0.31.0 you can extend default `Assertion` interface in an ambient declaration file (e.g: `vitest.d.ts`) with the code below: 27 27 28 28 ```ts 29 + import type { Assertion, AsymmetricMatchersContaining } from 'vitest' 30 + 29 31 interface CustomMatchers<R = unknown> { 30 32 toBeFoo(): R 31 33 }