@@ -258,6 +258,10 @@ describe('output export fallback helpers', () => {
258258 expect ( result ) . not . toBeNull ( )
259259 expect ( result ?. fallbackUrl . pathname ) . toBe ( '/docs/__fallback/__route_0' )
260260 expect ( fetchMock . mock . calls . map ( ( [ url ] ) => String ( url ) ) ) . toEqual ( [
261+ 'https://example.com/docs/api/reference/__fallback.txt' ,
262+ 'https://example.com/docs/api/reference/__fallback.meta.json' ,
263+ 'https://example.com/docs/api/__fallback.txt' ,
264+ 'https://example.com/docs/api/__fallback.meta.json' ,
261265 'https://example.com/docs/__fallback.txt' ,
262266 'https://example.com/docs/__fallback.meta.json' ,
263267 'https://example.com/docs/__fallback/__route_0.txt' ,
@@ -388,9 +392,15 @@ describe('output export fallback helpers', () => {
388392 )
389393
390394 expect ( fetchMock . mock . calls . map ( ( [ url ] ) => String ( url ) ) ) . toEqual ( [
395+ 'https://example.com/docs/api/reference/__fallback.txt' ,
396+ 'https://example.com/docs/api/reference/__fallback.meta.json' ,
397+ 'https://example.com/docs/api/__fallback.txt' ,
398+ 'https://example.com/docs/api/__fallback.meta.json' ,
391399 'https://example.com/docs/__fallback.txt' ,
392400 'https://example.com/docs/__fallback.meta.json' ,
393401 'https://example.com/docs/__fallback/__route_0.txt' ,
402+ 'https://example.com/docs/api/guide/__fallback.txt' ,
403+ 'https://example.com/docs/api/guide/__fallback.meta.json' ,
394404 ] )
395405 } )
396406} )
0 commit comments