@@ -125,6 +125,22 @@ describe(`build-headers-program`, () => {
125
125
pluginCreatorId : `049c1cfd-95f7-5555-a4ac-9b396d098b26` ,
126
126
} ,
127
127
] ,
128
+ [
129
+ `/test/` ,
130
+ {
131
+ jsonName : `test` ,
132
+ internalComponentName : `ComponentTest` ,
133
+ path : `/test/` ,
134
+ matchPath : undefined ,
135
+ componentChunkName : `component---src-pages-test-js` ,
136
+ isCreatedByStatefulCreatePages : true ,
137
+ context : { } ,
138
+ updatedAt : 1557740602361 ,
139
+ pluginCreator___NODE : `049c1cfd-95f7-5555-a4ac-9b396d098b26` ,
140
+ pluginCreatorId : `049c1cfd-95f7-5555-a4ac-9b396d098b26` ,
141
+ mode : `SSR` ,
142
+ } ,
143
+ ] ,
128
144
[
129
145
`/` ,
130
146
{
@@ -203,8 +219,8 @@ describe(`build-headers-program`, () => {
203
219
expect ( output ) . toMatchSnapshot ( )
204
220
expect ( output ) . toMatch ( / a p p - d a t a \. j s o n / )
205
221
expect ( output ) . toMatch ( / p a g e - d a t a \. j s o n / )
206
- // we should only check page-data & app-data once which leads to 2 times
207
- expect ( fs . existsSync ) . toBeCalledTimes ( 2 )
222
+ // we should only check app-data once which leads to 1 time
223
+ expect ( fs . existsSync ) . toBeCalledTimes ( 1 )
208
224
} )
209
225
210
226
it ( `with manifest['pages-manifest']` , async ( ) => {
@@ -237,7 +253,7 @@ describe(`build-headers-program`, () => {
237
253
expect ( output ) . toMatchSnapshot ( )
238
254
expect ( output ) . toMatch ( / \/ p a g e s - m a n i f e s t - a b 1 1 f 0 9 e 0 c a 7 e c d 3 b 4 3 e \. j s / g)
239
255
expect ( output ) . not . toMatch ( / \/ a p p - d a t a \. j s o n / g)
240
- expect ( output ) . not . toMatch ( / \/ p a g e - d a t a \. j s o n / g)
256
+ expect ( output ) . toMatch ( / \/ p a g e - d a t a \. j s o n / g)
241
257
expect ( output ) . not . toMatch ( / \/ u n d e f i n e d / g)
242
258
} )
243
259
0 commit comments