File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -611,8 +611,11 @@ async function copyVitestPackages() {
611611 console . log ( ` -> ${ copied } files` ) ;
612612
613613 // Copy root type definition files if they exist
614- // These include context.d.ts (browser providers), matchers.d.ts (expect.element), jest-dom.d.ts (matchers)
615- const rootDtsFiles = [ 'context.d.ts' , 'matchers.d.ts' , 'jest-dom.d.ts' ] ;
614+ // These include context.d.ts (browser providers), matchers.d.ts (expect.element),
615+ // jest-dom.d.ts (matchers), aria-role.d.ts (ARIARole type used by context.d.ts)
616+ // TODO: consider dynamically scanning root .d.ts files instead of hardcoding,
617+ // since upstream @vitest /browser may add new .d.ts files in future versions.
618+ const rootDtsFiles = [ 'context.d.ts' , 'matchers.d.ts' , 'jest-dom.d.ts' , 'aria-role.d.ts' ] ;
616619 for ( const dtsFile of rootDtsFiles ) {
617620 const rootDts = resolve ( projectDir , `node_modules/${ pkg } /${ dtsFile } ` ) ;
618621 try {
You can’t perform that action at this time.
0 commit comments