File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
testing/test-setup/src/lib/extend Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 11// types/vitest.d.ts
22import 'vitest' ;
3+ import { describe , expect } from "vitest" ;
4+
5+ interface CustomMatchers < R = unknown > {
6+ toMatchPath ( path : string ) : void ;
7+ toStartWithPath ( path : string ) : void ;
8+ toContainPath ( path : string ) : void ;
9+ toEndWithPath ( path : string ) : void ;
10+ }
11+
12+ interface CustomAsymmetricMatchers < R = unknown > {
13+ pathToMatch ( path : string ) : void ;
14+ pathToStartWith ( path : string ) : void ;
15+ pathToContain ( path : string ) : void ;
16+ pathToEndWith ( path : string ) : void ;
17+ }
318
419declare module 'vitest' {
5- type Assertion < T = any > = {
6- toMatchPath ( path : string ) : void ;
7- toStartWithPath ( path : string ) : void ;
8- toContainPath ( path : string ) : void ;
9- toEndWithPath ( path : string ) : void ;
10- } ;
20+ interface Assertion < T = any > extends CustomMatchers < T > { } ;
21+ interface AsymmetricMatchersContaining extends CustomAsymmetricMatchers { }
1122}
You can’t perform that action at this time.
0 commit comments