@@ -702,7 +702,10 @@ describe('framework shim', () => {
702702 it ( 'returns false when src/env.d.ts does not contain vue shim' , ( ) => {
703703 const srcDir = path . join ( tmpDir , 'src' ) ;
704704 fs . mkdirSync ( srcDir ) ;
705- fs . writeFileSync ( path . join ( srcDir , 'env.d.ts' ) , '/// <reference types="vite-plus/client" />\n' ) ;
705+ fs . writeFileSync (
706+ path . join ( srcDir , 'env.d.ts' ) ,
707+ '/// <reference types="vite-plus/client" />\n' ,
708+ ) ;
706709 expect ( hasFrameworkShim ( tmpDir , 'vue' ) ) . toBe ( false ) ;
707710 } ) ;
708711
@@ -711,10 +714,7 @@ describe('framework shim', () => {
711714 } ) ;
712715
713716 it ( 'returns true when root env.d.ts contains astro/client reference' , ( ) => {
714- fs . writeFileSync (
715- path . join ( tmpDir , 'env.d.ts' ) ,
716- '/// <reference types="astro/client" />\n' ,
717- ) ;
717+ fs . writeFileSync ( path . join ( tmpDir , 'env.d.ts' ) , '/// <reference types="astro/client" />\n' ) ;
718718 expect ( hasFrameworkShim ( tmpDir , 'astro' ) ) . toBe ( true ) ;
719719 } ) ;
720720 } ) ;
@@ -758,7 +758,8 @@ describe('framework shim', () => {
758758 // Simulate create-vue having already written a shim into src/env.d.ts
759759 const srcDir = path . join ( tmpDir , 'src' ) ;
760760 fs . mkdirSync ( srcDir ) ;
761- const existingShim = "declare module '*.vue' {\n import type { DefineComponent } from 'vue';\n const component: DefineComponent;\n export default component;\n}\n" ;
761+ const existingShim =
762+ "declare module '*.vue' {\n import type { DefineComponent } from 'vue';\n const component: DefineComponent;\n export default component;\n}\n" ;
762763 fs . writeFileSync ( path . join ( srcDir , 'env.d.ts' ) , existingShim ) ;
763764
764765 const framework = detectFramework (
0 commit comments