@@ -9,7 +9,7 @@ const log = { info: vi.fn(), warn: vi.fn(), error: vi.fn(), debug: vi.fn() };
9
9
const context : Context = { env : { } , log, options : { } , packageJson : { } } as any ;
10
10
const getContext = ( ctx : any ) : Context => ( { ...context , ...ctx } ) ;
11
11
12
- const REACT = { '@storybook/html-vite ' : '1.2.3' } ;
12
+ const REACT = { '@storybook/react-webpack5 ' : '1.2.3' } ;
13
13
const VUE = { '@storybook/vue' : '1.2.3' } ;
14
14
15
15
afterEach ( ( ) => {
@@ -31,10 +31,10 @@ describe('getStorybookInfo', () => {
31
31
expect ( sbInfo ) . toEqual (
32
32
// We're getting the result of tracing chromatic-cli's node_modules here.
33
33
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
35
35
// either one based on when those promises resolve.
36
36
version : expect . any ( String ) ,
37
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
37
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
38
38
} )
39
39
) ;
40
40
} ) ;
@@ -61,7 +61,7 @@ describe('getStorybookInfo', () => {
61
61
const ctx = getContext ( { packageJson : { dependencies : VUE } } ) ;
62
62
await expect ( getStorybookInfo ( ctx ) ) . resolves . toEqual (
63
63
expect . objectContaining ( {
64
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
64
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
65
65
} )
66
66
) ;
67
67
} ) ;
@@ -70,10 +70,10 @@ describe('getStorybookInfo', () => {
70
70
await expect ( getStorybookInfo ( context ) ) . resolves . toEqual (
71
71
// We're getting the result of tracing chromatic-cli's node_modules here.
72
72
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
74
74
// either one based on when those promises resolve.
75
75
version : expect . any ( String ) ,
76
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
76
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
77
77
} )
78
78
) ;
79
79
expect ( log . info ) . toHaveBeenCalledWith (
@@ -89,7 +89,7 @@ describe('getStorybookInfo', () => {
89
89
expect ( await getStorybookInfo ( ctx ) ) . toEqual (
90
90
expect . objectContaining ( {
91
91
version : '3.2.1' ,
92
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
92
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
93
93
} )
94
94
) ;
95
95
} ) ;
@@ -99,7 +99,7 @@ describe('getStorybookInfo', () => {
99
99
expect ( await getStorybookInfo ( ctx ) ) . toEqual (
100
100
expect . objectContaining ( {
101
101
version : '3.2.1' ,
102
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
102
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
103
103
} )
104
104
) ;
105
105
} ) ;
@@ -108,7 +108,7 @@ describe('getStorybookInfo', () => {
108
108
const ctx = getContext ( { env : { CHROMATIC_STORYBOOK_VERSION : '3.2.1' } } ) ;
109
109
expect ( await getStorybookInfo ( ctx ) ) . toEqual (
110
110
expect . objectContaining ( {
111
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
111
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
112
112
} )
113
113
) ;
114
114
} ) ;
@@ -117,7 +117,7 @@ describe('getStorybookInfo', () => {
117
117
const ctx = getContext ( { env :
{ CHROMATIC_STORYBOOK_VERSION :
'@storybook/[email protected] ' } } ) ;
118
118
expect ( await getStorybookInfo ( ctx ) ) . toEqual (
119
119
expect . objectContaining ( {
120
- builder : { name : '@storybook/html-vite ' , packageVersion : expect . any ( String ) } ,
120
+ builder : { name : '@storybook/react-webpack5 ' , packageVersion : expect . any ( String ) } ,
121
121
} )
122
122
) ;
123
123
} ) ;
0 commit comments