@@ -9,7 +9,7 @@ const log = { info: vi.fn(), warn: vi.fn(), error: vi.fn(), debug: vi.fn() };
99const context : Context = { env : { } , log, options : { } , packageJson : { } } as any ;
1010const getContext = ( ctx : any ) : Context => ( { ...context , ...ctx } ) ;
1111
12- const REACT = { '@storybook/html-vite ' : '1.2.3' } ;
12+ const REACT = { '@storybook/react-webpack5 ' : '1.2.3' } ;
1313const VUE = { '@storybook/vue' : '1.2.3' } ;
1414
1515afterEach ( ( ) => {
@@ -31,10 +31,10 @@ describe('getStorybookInfo', () => {
3131 expect ( sbInfo ) . toEqual (
3232 // We're getting the result of tracing chromatic-cli's node_modules here.
3333 expect . objectContaining ( {
34- // We're currently using `react` and `@storybook/html-vite ` so the we can end up with
34+ // We're currently using `react` and `@storybook/react-webpack5 ` so the we can end up with
3535 // either one based on when those promises resolve.
3636 version : expect . any ( String ) ,
37- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
37+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
3838 } )
3939 ) ;
4040 } ) ;
@@ -61,7 +61,7 @@ describe('getStorybookInfo', () => {
6161 const ctx = getContext ( { packageJson : { dependencies : VUE } } ) ;
6262 await expect ( getStorybookInfo ( ctx ) ) . resolves . toEqual (
6363 expect . objectContaining ( {
64- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
64+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
6565 } )
6666 ) ;
6767 } ) ;
@@ -70,10 +70,10 @@ describe('getStorybookInfo', () => {
7070 await expect ( getStorybookInfo ( context ) ) . resolves . toEqual (
7171 // We're getting the result of tracing chromatic-cli's node_modules here.
7272 expect . objectContaining ( {
73- // We're currently using `react` and `@storybook/html-vite ` so the we can end up with
73+ // We're currently using `react` and `@storybook/react-webpack5 ` so the we can end up with
7474 // either one based on when those promises resolve.
7575 version : expect . any ( String ) ,
76- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
76+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
7777 } )
7878 ) ;
7979 expect ( log . info ) . toHaveBeenCalledWith (
@@ -89,7 +89,7 @@ describe('getStorybookInfo', () => {
8989 expect ( await getStorybookInfo ( ctx ) ) . toEqual (
9090 expect . objectContaining ( {
9191 version : '3.2.1' ,
92- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
92+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
9393 } )
9494 ) ;
9595 } ) ;
@@ -99,7 +99,7 @@ describe('getStorybookInfo', () => {
9999 expect ( await getStorybookInfo ( ctx ) ) . toEqual (
100100 expect . objectContaining ( {
101101 version : '3.2.1' ,
102- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
102+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
103103 } )
104104 ) ;
105105 } ) ;
@@ -108,7 +108,7 @@ describe('getStorybookInfo', () => {
108108 const ctx = getContext ( { env : { CHROMATIC_STORYBOOK_VERSION : '3.2.1' } } ) ;
109109 expect ( await getStorybookInfo ( ctx ) ) . toEqual (
110110 expect . objectContaining ( {
111- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
111+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
112112 } )
113113 ) ;
114114 } ) ;
@@ -117,7 +117,7 @@ describe('getStorybookInfo', () => {
117117 const ctx = getContext ( { env :
{ CHROMATIC_STORYBOOK_VERSION :
'@storybook/[email protected] ' } } ) ; 118118 expect ( await getStorybookInfo ( ctx ) ) . toEqual (
119119 expect . objectContaining ( {
120- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
120+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
121121 } )
122122 ) ;
123123 } ) ;
0 commit comments