@@ -22,7 +22,7 @@ vi.mock('../../../core/src/shared/utils/module', () => ({
2222describe ( 'updateConfigFile' , ( ) => {
2323 it ( 'updates vite config file' , async ( ) => {
2424 const source = babel . babelParse (
25- await loadTemplate ( 'vitest.config.template.ts ' , {
25+ await loadTemplate ( 'vitest.config.template' , {
2626 CONFIG_DIR : '.storybook' ,
2727 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
2828 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -102,7 +102,7 @@ describe('updateConfigFile', () => {
102102
103103 it ( 'supports object notation without defineConfig' , async ( ) => {
104104 const source = babel . babelParse (
105- await loadTemplate ( 'vitest.config.template.ts ' , {
105+ await loadTemplate ( 'vitest.config.template' , {
106106 CONFIG_DIR : '.storybook' ,
107107 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
108108 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -182,7 +182,7 @@ describe('updateConfigFile', () => {
182182
183183 it ( 'does not support function notation' , async ( ) => {
184184 const source = babel . babelParse (
185- await loadTemplate ( 'vitest.config.template.ts ' , {
185+ await loadTemplate ( 'vitest.config.template' , {
186186 CONFIG_DIR : '.storybook' ,
187187 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
188188 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -214,7 +214,7 @@ describe('updateConfigFile', () => {
214214
215215 it ( 'adds projects property to test config' , async ( ) => {
216216 const source = babel . babelParse (
217- await loadTemplate ( 'vitest.config.3.2.template.ts ' , {
217+ await loadTemplate ( 'vitest.config.3.2.template' , {
218218 CONFIG_DIR : '.storybook' ,
219219 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
220220 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -378,7 +378,7 @@ describe('updateConfigFile', () => {
378378
379379 it ( 'edits projects property of test config' , async ( ) => {
380380 const source = babel . babelParse (
381- await loadTemplate ( 'vitest.config.3.2.template.ts ' , {
381+ await loadTemplate ( 'vitest.config.3.2.template' , {
382382 CONFIG_DIR : '.storybook' ,
383383 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
384384 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -458,7 +458,7 @@ describe('updateConfigFile', () => {
458458
459459 it ( 'adds workspace property to test config' , async ( ) => {
460460 const source = babel . babelParse (
461- await loadTemplate ( 'vitest.config.template.ts ' , {
461+ await loadTemplate ( 'vitest.config.template' , {
462462 CONFIG_DIR : '.storybook' ,
463463 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
464464 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -537,7 +537,7 @@ describe('updateConfigFile', () => {
537537
538538 it ( 'adds test property to vite config' , async ( ) => {
539539 const source = babel . babelParse (
540- await loadTemplate ( 'vitest.config.template.ts ' , {
540+ await loadTemplate ( 'vitest.config.template' , {
541541 CONFIG_DIR : '.storybook' ,
542542 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
543543 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -612,7 +612,7 @@ describe('updateConfigFile', () => {
612612
613613 it ( 'supports mergeConfig with multiple defineConfig calls, finding the one with test' , async ( ) => {
614614 const source = babel . babelParse (
615- await loadTemplate ( 'vitest.config.template.ts ' , {
615+ await loadTemplate ( 'vitest.config.template' , {
616616 CONFIG_DIR : '.storybook' ,
617617 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
618618 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -698,7 +698,7 @@ describe('updateConfigFile', () => {
698698 } ) ;
699699 it ( 'supports mergeConfig without defineConfig calls' , async ( ) => {
700700 const source = babel . babelParse (
701- await loadTemplate ( 'vitest.config.template.ts ' , {
701+ await loadTemplate ( 'vitest.config.template' , {
702702 CONFIG_DIR : '.storybook' ,
703703 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
704704 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -781,7 +781,7 @@ describe('updateConfigFile', () => {
781781
782782 it ( 'supports mergeConfig without config containing test property' , async ( ) => {
783783 const source = babel . babelParse (
784- await loadTemplate ( 'vitest.config.template.ts ' , {
784+ await loadTemplate ( 'vitest.config.template' , {
785785 CONFIG_DIR : '.storybook' ,
786786 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
787787 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -857,7 +857,7 @@ describe('updateConfigFile', () => {
857857
858858 it ( 'supports mergeConfig with defineConfig pattern using projects (Vitest 3.2+)' , async ( ) => {
859859 const source = babel . babelParse (
860- await loadTemplate ( 'vitest.config.3.2.template.ts ' , {
860+ await loadTemplate ( 'vitest.config.3.2.template' , {
861861 CONFIG_DIR : '.storybook' ,
862862 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
863863 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -941,7 +941,7 @@ describe('updateConfigFile', () => {
941941
942942 it ( 'appends storybook project to existing test.projects array (no double nesting)' , async ( ) => {
943943 const source = babel . babelParse (
944- await loadTemplate ( 'vitest.config.3.2.template.ts ' , {
944+ await loadTemplate ( 'vitest.config.3.2.template' , {
945945 CONFIG_DIR : '.storybook' ,
946946 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
947947 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -1030,7 +1030,7 @@ describe('updateConfigFile', () => {
10301030
10311031 it ( 'extracts coverage config and keeps it at top level when using workspace' , async ( ) => {
10321032 const source = babel . babelParse (
1033- await loadTemplate ( 'vitest.config.template.ts ' , {
1033+ await loadTemplate ( 'vitest.config.template' , {
10341034 CONFIG_DIR : '.storybook' ,
10351035 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
10361036 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -1129,7 +1129,7 @@ describe('updateConfigFile', () => {
11291129
11301130 it ( 'extracts coverage config and keeps it at top level when using projects' , async ( ) => {
11311131 const source = babel . babelParse (
1132- await loadTemplate ( 'vitest.config.3.2.template.ts ' , {
1132+ await loadTemplate ( 'vitest.config.3.2.template' , {
11331133 CONFIG_DIR : '.storybook' ,
11341134 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
11351135 SETUP_FILE : '../.storybook/vitest.setup.ts' ,
@@ -1230,7 +1230,7 @@ describe('updateConfigFile', () => {
12301230describe ( 'updateWorkspaceFile' , ( ) => {
12311231 it ( 'updates vitest workspace file using array syntax' , async ( ) => {
12321232 const source = babel . babelParse (
1233- await loadTemplate ( 'vitest.workspace.template.ts ' , {
1233+ await loadTemplate ( 'vitest.workspace.template' , {
12341234 EXTENDS_WORKSPACE : '' ,
12351235 CONFIG_DIR : '.storybook' ,
12361236 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
@@ -1286,7 +1286,7 @@ describe('updateWorkspaceFile', () => {
12861286
12871287 it ( 'updates vitest workspace file using defineWorkspace syntax' , async ( ) => {
12881288 const source = babel . babelParse (
1289- await loadTemplate ( 'vitest.workspace.template.ts ' , {
1289+ await loadTemplate ( 'vitest.workspace.template' , {
12901290 EXTENDS_WORKSPACE : '' ,
12911291 CONFIG_DIR : '.storybook' ,
12921292 BROWSER_CONFIG : "{ provider: 'playwright' }" ,
@@ -1349,7 +1349,7 @@ describe('loadTemplate', () => {
13491349 // Windows-style path with backslashes (need to escape them in JS strings)
13501350 const windowsPath = '.\\apps\\frontend-storybook\\.storybook' ;
13511351
1352- const result = await loadTemplate ( 'vitest.config.template.ts ' , {
1352+ const result = await loadTemplate ( 'vitest.config.template' , {
13531353 CONFIG_DIR : windowsPath ,
13541354 SETUP_FILE : '.\\apps\\frontend-storybook\\.storybook\\vitest.setup.ts' ,
13551355 } ) ;
@@ -1363,7 +1363,7 @@ describe('loadTemplate', () => {
13631363 // Unix-style path with forward slashes
13641364 const unixPath = './apps/frontend-storybook/.storybook' ;
13651365
1366- const result = await loadTemplate ( 'vitest.config.template.ts ' , {
1366+ const result = await loadTemplate ( 'vitest.config.template' , {
13671367 CONFIG_DIR : unixPath ,
13681368 SETUP_FILE : './apps/frontend-storybook/.storybook/vitest.setup.ts' ,
13691369 } ) ;
0 commit comments