File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /// <reference types="@rslib/core/types" />
Original file line number Diff line number Diff line change 1+ /// <reference types="@rslib/core/types" />
Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ export const createAndValidate = (
7777 expect ( existsSync ( path . join ( dir , 'tsconfig.json' ) ) ) . toBeTruthy ( ) ;
7878 }
7979
80+ if (
81+ templateCase . lang === 'ts' &&
82+ ( templateCase . template === 'react' || templateCase . template === 'vue' )
83+ ) {
84+ const envDtsPath = path . join ( dir , 'src/env.d.ts' ) ;
85+ expect ( existsSync ( envDtsPath ) ) . toBeTruthy ( ) ;
86+ expect ( fse . readFileSync ( envDtsPath , 'utf-8' ) . trimEnd ( ) ) . toBe (
87+ '/// <reference types="@rslib/core/types" />' ,
88+ ) ;
89+ }
90+
8091 // tool - Storybook
8192 if ( templateCase . tools . includes ( 'storybook' ) ) {
8293 for ( const file of [
You can’t perform that action at this time.
0 commit comments