Skip to content

Commit 325c356

Browse files
authored
test(vue-start, solid-start): raw sync tests (#6234)
1 parent 2372aa3 commit 325c356

26 files changed

Lines changed: 5530 additions & 0 deletions

e2e/solid-start/basic/src/raw-stream-fns.ts

Lines changed: 480 additions & 0 deletions
Large diffs are not rendered by default.

e2e/solid-start/basic/src/routeTree.gen.ts

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Route as Char45824Char54620Char48124Char44397RouteImport } from './rout
1313
import { Route as UsersRouteImport } from './routes/users'
1414
import { Route as StreamRouteImport } from './routes/stream'
1515
import { Route as ScriptsRouteImport } from './routes/scripts'
16+
import { Route as RawStreamRouteImport } from './routes/raw-stream'
1617
import { Route as PostsRouteImport } from './routes/posts'
1718
import { Route as LinksRouteImport } from './routes/links'
1819
import { Route as InlineScriptsRouteImport } from './routes/inline-scripts'
@@ -24,13 +25,20 @@ import { Route as IndexRouteImport } from './routes/index'
2425
import { Route as UsersIndexRouteImport } from './routes/users.index'
2526
import { Route as SearchParamsIndexRouteImport } from './routes/search-params/index'
2627
import { Route as RedirectIndexRouteImport } from './routes/redirect/index'
28+
import { Route as RawStreamIndexRouteImport } from './routes/raw-stream/index'
2729
import { Route as PostsIndexRouteImport } from './routes/posts.index'
2830
import { Route as NotFoundIndexRouteImport } from './routes/not-found/index'
2931
import { Route as MultiCookieRedirectIndexRouteImport } from './routes/multi-cookie-redirect/index'
3032
import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
3133
import { Route as SearchParamsLoaderThrowsRedirectRouteImport } from './routes/search-params/loader-throws-redirect'
3234
import { Route as SearchParamsDefaultRouteImport } from './routes/search-params/default'
3335
import { Route as RedirectTargetRouteImport } from './routes/redirect/$target'
36+
import { Route as RawStreamSsrTextHintRouteImport } from './routes/raw-stream/ssr-text-hint'
37+
import { Route as RawStreamSsrSingleRouteImport } from './routes/raw-stream/ssr-single'
38+
import { Route as RawStreamSsrMultipleRouteImport } from './routes/raw-stream/ssr-multiple'
39+
import { Route as RawStreamSsrMixedRouteImport } from './routes/raw-stream/ssr-mixed'
40+
import { Route as RawStreamSsrBinaryHintRouteImport } from './routes/raw-stream/ssr-binary-hint'
41+
import { Route as RawStreamClientCallRouteImport } from './routes/raw-stream/client-call'
3442
import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
3543
import { Route as NotFoundViaLoaderRouteImport } from './routes/not-found/via-loader'
3644
import { Route as NotFoundViaBeforeLoadRouteImport } from './routes/not-found/via-beforeLoad'
@@ -72,6 +80,11 @@ const ScriptsRoute = ScriptsRouteImport.update({
7280
path: '/scripts',
7381
getParentRoute: () => rootRouteImport,
7482
} as any)
83+
const RawStreamRoute = RawStreamRouteImport.update({
84+
id: '/raw-stream',
85+
path: '/raw-stream',
86+
getParentRoute: () => rootRouteImport,
87+
} as any)
7588
const PostsRoute = PostsRouteImport.update({
7689
id: '/posts',
7790
path: '/posts',
@@ -126,6 +139,11 @@ const RedirectIndexRoute = RedirectIndexRouteImport.update({
126139
path: '/redirect/',
127140
getParentRoute: () => rootRouteImport,
128141
} as any)
142+
const RawStreamIndexRoute = RawStreamIndexRouteImport.update({
143+
id: '/',
144+
path: '/',
145+
getParentRoute: () => RawStreamRoute,
146+
} as any)
129147
const PostsIndexRoute = PostsIndexRouteImport.update({
130148
id: '/',
131149
path: '/',
@@ -163,6 +181,36 @@ const RedirectTargetRoute = RedirectTargetRouteImport.update({
163181
path: '/redirect/$target',
164182
getParentRoute: () => rootRouteImport,
165183
} as any)
184+
const RawStreamSsrTextHintRoute = RawStreamSsrTextHintRouteImport.update({
185+
id: '/ssr-text-hint',
186+
path: '/ssr-text-hint',
187+
getParentRoute: () => RawStreamRoute,
188+
} as any)
189+
const RawStreamSsrSingleRoute = RawStreamSsrSingleRouteImport.update({
190+
id: '/ssr-single',
191+
path: '/ssr-single',
192+
getParentRoute: () => RawStreamRoute,
193+
} as any)
194+
const RawStreamSsrMultipleRoute = RawStreamSsrMultipleRouteImport.update({
195+
id: '/ssr-multiple',
196+
path: '/ssr-multiple',
197+
getParentRoute: () => RawStreamRoute,
198+
} as any)
199+
const RawStreamSsrMixedRoute = RawStreamSsrMixedRouteImport.update({
200+
id: '/ssr-mixed',
201+
path: '/ssr-mixed',
202+
getParentRoute: () => RawStreamRoute,
203+
} as any)
204+
const RawStreamSsrBinaryHintRoute = RawStreamSsrBinaryHintRouteImport.update({
205+
id: '/ssr-binary-hint',
206+
path: '/ssr-binary-hint',
207+
getParentRoute: () => RawStreamRoute,
208+
} as any)
209+
const RawStreamClientCallRoute = RawStreamClientCallRouteImport.update({
210+
id: '/client-call',
211+
path: '/client-call',
212+
getParentRoute: () => RawStreamRoute,
213+
} as any)
166214
const PostsPostIdRoute = PostsPostIdRouteImport.update({
167215
id: '/$postId',
168216
path: '/$postId',
@@ -274,6 +322,7 @@ export interface FileRoutesByFullPath {
274322
'/inline-scripts': typeof InlineScriptsRoute
275323
'/links': typeof LinksRoute
276324
'/posts': typeof PostsRouteWithChildren
325+
'/raw-stream': typeof RawStreamRouteWithChildren
277326
'/scripts': typeof ScriptsRoute
278327
'/stream': typeof StreamRoute
279328
'/users': typeof UsersRouteWithChildren
@@ -283,13 +332,20 @@ export interface FileRoutesByFullPath {
283332
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
284333
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
285334
'/posts/$postId': typeof PostsPostIdRoute
335+
'/raw-stream/client-call': typeof RawStreamClientCallRoute
336+
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
337+
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
338+
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
339+
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
340+
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
286341
'/redirect/$target': typeof RedirectTargetRouteWithChildren
287342
'/search-params/default': typeof SearchParamsDefaultRoute
288343
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
289344
'/users/$userId': typeof UsersUserIdRoute
290345
'/multi-cookie-redirect': typeof MultiCookieRedirectIndexRoute
291346
'/not-found/': typeof NotFoundIndexRoute
292347
'/posts/': typeof PostsIndexRoute
348+
'/raw-stream/': typeof RawStreamIndexRoute
293349
'/redirect': typeof RedirectIndexRoute
294350
'/search-params/': typeof SearchParamsIndexRoute
295351
'/users/': typeof UsersIndexRoute
@@ -320,12 +376,19 @@ export interface FileRoutesByTo {
320376
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
321377
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
322378
'/posts/$postId': typeof PostsPostIdRoute
379+
'/raw-stream/client-call': typeof RawStreamClientCallRoute
380+
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
381+
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
382+
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
383+
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
384+
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
323385
'/search-params/default': typeof SearchParamsDefaultRoute
324386
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
325387
'/users/$userId': typeof UsersUserIdRoute
326388
'/multi-cookie-redirect': typeof MultiCookieRedirectIndexRoute
327389
'/not-found': typeof NotFoundIndexRoute
328390
'/posts': typeof PostsIndexRoute
391+
'/raw-stream': typeof RawStreamIndexRoute
329392
'/redirect': typeof RedirectIndexRoute
330393
'/search-params': typeof SearchParamsIndexRoute
331394
'/users': typeof UsersIndexRoute
@@ -353,6 +416,7 @@ export interface FileRoutesById {
353416
'/inline-scripts': typeof InlineScriptsRoute
354417
'/links': typeof LinksRoute
355418
'/posts': typeof PostsRouteWithChildren
419+
'/raw-stream': typeof RawStreamRouteWithChildren
356420
'/scripts': typeof ScriptsRoute
357421
'/stream': typeof StreamRoute
358422
'/users': typeof UsersRouteWithChildren
@@ -363,13 +427,20 @@ export interface FileRoutesById {
363427
'/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute
364428
'/not-found/via-loader': typeof NotFoundViaLoaderRoute
365429
'/posts/$postId': typeof PostsPostIdRoute
430+
'/raw-stream/client-call': typeof RawStreamClientCallRoute
431+
'/raw-stream/ssr-binary-hint': typeof RawStreamSsrBinaryHintRoute
432+
'/raw-stream/ssr-mixed': typeof RawStreamSsrMixedRoute
433+
'/raw-stream/ssr-multiple': typeof RawStreamSsrMultipleRoute
434+
'/raw-stream/ssr-single': typeof RawStreamSsrSingleRoute
435+
'/raw-stream/ssr-text-hint': typeof RawStreamSsrTextHintRoute
366436
'/redirect/$target': typeof RedirectTargetRouteWithChildren
367437
'/search-params/default': typeof SearchParamsDefaultRoute
368438
'/search-params/loader-throws-redirect': typeof SearchParamsLoaderThrowsRedirectRoute
369439
'/users/$userId': typeof UsersUserIdRoute
370440
'/multi-cookie-redirect/': typeof MultiCookieRedirectIndexRoute
371441
'/not-found/': typeof NotFoundIndexRoute
372442
'/posts/': typeof PostsIndexRoute
443+
'/raw-stream/': typeof RawStreamIndexRoute
373444
'/redirect/': typeof RedirectIndexRoute
374445
'/search-params/': typeof SearchParamsIndexRoute
375446
'/users/': typeof UsersIndexRoute
@@ -397,6 +468,7 @@ export interface FileRouteTypes {
397468
| '/inline-scripts'
398469
| '/links'
399470
| '/posts'
471+
| '/raw-stream'
400472
| '/scripts'
401473
| '/stream'
402474
| '/users'
@@ -406,13 +478,20 @@ export interface FileRouteTypes {
406478
| '/not-found/via-beforeLoad'
407479
| '/not-found/via-loader'
408480
| '/posts/$postId'
481+
| '/raw-stream/client-call'
482+
| '/raw-stream/ssr-binary-hint'
483+
| '/raw-stream/ssr-mixed'
484+
| '/raw-stream/ssr-multiple'
485+
| '/raw-stream/ssr-single'
486+
| '/raw-stream/ssr-text-hint'
409487
| '/redirect/$target'
410488
| '/search-params/default'
411489
| '/search-params/loader-throws-redirect'
412490
| '/users/$userId'
413491
| '/multi-cookie-redirect'
414492
| '/not-found/'
415493
| '/posts/'
494+
| '/raw-stream/'
416495
| '/redirect'
417496
| '/search-params/'
418497
| '/users/'
@@ -443,12 +522,19 @@ export interface FileRouteTypes {
443522
| '/not-found/via-beforeLoad'
444523
| '/not-found/via-loader'
445524
| '/posts/$postId'
525+
| '/raw-stream/client-call'
526+
| '/raw-stream/ssr-binary-hint'
527+
| '/raw-stream/ssr-mixed'
528+
| '/raw-stream/ssr-multiple'
529+
| '/raw-stream/ssr-single'
530+
| '/raw-stream/ssr-text-hint'
446531
| '/search-params/default'
447532
| '/search-params/loader-throws-redirect'
448533
| '/users/$userId'
449534
| '/multi-cookie-redirect'
450535
| '/not-found'
451536
| '/posts'
537+
| '/raw-stream'
452538
| '/redirect'
453539
| '/search-params'
454540
| '/users'
@@ -475,6 +561,7 @@ export interface FileRouteTypes {
475561
| '/inline-scripts'
476562
| '/links'
477563
| '/posts'
564+
| '/raw-stream'
478565
| '/scripts'
479566
| '/stream'
480567
| '/users'
@@ -485,13 +572,20 @@ export interface FileRouteTypes {
485572
| '/not-found/via-beforeLoad'
486573
| '/not-found/via-loader'
487574
| '/posts/$postId'
575+
| '/raw-stream/client-call'
576+
| '/raw-stream/ssr-binary-hint'
577+
| '/raw-stream/ssr-mixed'
578+
| '/raw-stream/ssr-multiple'
579+
| '/raw-stream/ssr-single'
580+
| '/raw-stream/ssr-text-hint'
488581
| '/redirect/$target'
489582
| '/search-params/default'
490583
| '/search-params/loader-throws-redirect'
491584
| '/users/$userId'
492585
| '/multi-cookie-redirect/'
493586
| '/not-found/'
494587
| '/posts/'
588+
| '/raw-stream/'
495589
| '/redirect/'
496590
| '/search-params/'
497591
| '/users/'
@@ -519,6 +613,7 @@ export interface RootRouteChildren {
519613
InlineScriptsRoute: typeof InlineScriptsRoute
520614
LinksRoute: typeof LinksRoute
521615
PostsRoute: typeof PostsRouteWithChildren
616+
RawStreamRoute: typeof RawStreamRouteWithChildren
522617
ScriptsRoute: typeof ScriptsRoute
523618
StreamRoute: typeof StreamRoute
524619
UsersRoute: typeof UsersRouteWithChildren
@@ -563,6 +658,13 @@ declare module '@tanstack/solid-router' {
563658
preLoaderRoute: typeof ScriptsRouteImport
564659
parentRoute: typeof rootRouteImport
565660
}
661+
'/raw-stream': {
662+
id: '/raw-stream'
663+
path: '/raw-stream'
664+
fullPath: '/raw-stream'
665+
preLoaderRoute: typeof RawStreamRouteImport
666+
parentRoute: typeof rootRouteImport
667+
}
566668
'/posts': {
567669
id: '/posts'
568670
path: '/posts'
@@ -640,6 +742,13 @@ declare module '@tanstack/solid-router' {
640742
preLoaderRoute: typeof RedirectIndexRouteImport
641743
parentRoute: typeof rootRouteImport
642744
}
745+
'/raw-stream/': {
746+
id: '/raw-stream/'
747+
path: '/'
748+
fullPath: '/raw-stream/'
749+
preLoaderRoute: typeof RawStreamIndexRouteImport
750+
parentRoute: typeof RawStreamRoute
751+
}
643752
'/posts/': {
644753
id: '/posts/'
645754
path: '/'
@@ -689,6 +798,48 @@ declare module '@tanstack/solid-router' {
689798
preLoaderRoute: typeof RedirectTargetRouteImport
690799
parentRoute: typeof rootRouteImport
691800
}
801+
'/raw-stream/ssr-text-hint': {
802+
id: '/raw-stream/ssr-text-hint'
803+
path: '/ssr-text-hint'
804+
fullPath: '/raw-stream/ssr-text-hint'
805+
preLoaderRoute: typeof RawStreamSsrTextHintRouteImport
806+
parentRoute: typeof RawStreamRoute
807+
}
808+
'/raw-stream/ssr-single': {
809+
id: '/raw-stream/ssr-single'
810+
path: '/ssr-single'
811+
fullPath: '/raw-stream/ssr-single'
812+
preLoaderRoute: typeof RawStreamSsrSingleRouteImport
813+
parentRoute: typeof RawStreamRoute
814+
}
815+
'/raw-stream/ssr-multiple': {
816+
id: '/raw-stream/ssr-multiple'
817+
path: '/ssr-multiple'
818+
fullPath: '/raw-stream/ssr-multiple'
819+
preLoaderRoute: typeof RawStreamSsrMultipleRouteImport
820+
parentRoute: typeof RawStreamRoute
821+
}
822+
'/raw-stream/ssr-mixed': {
823+
id: '/raw-stream/ssr-mixed'
824+
path: '/ssr-mixed'
825+
fullPath: '/raw-stream/ssr-mixed'
826+
preLoaderRoute: typeof RawStreamSsrMixedRouteImport
827+
parentRoute: typeof RawStreamRoute
828+
}
829+
'/raw-stream/ssr-binary-hint': {
830+
id: '/raw-stream/ssr-binary-hint'
831+
path: '/ssr-binary-hint'
832+
fullPath: '/raw-stream/ssr-binary-hint'
833+
preLoaderRoute: typeof RawStreamSsrBinaryHintRouteImport
834+
parentRoute: typeof RawStreamRoute
835+
}
836+
'/raw-stream/client-call': {
837+
id: '/raw-stream/client-call'
838+
path: '/client-call'
839+
fullPath: '/raw-stream/client-call'
840+
preLoaderRoute: typeof RawStreamClientCallRouteImport
841+
parentRoute: typeof RawStreamRoute
842+
}
692843
'/posts/$postId': {
693844
id: '/posts/$postId'
694845
path: '/$postId'
@@ -893,6 +1044,30 @@ const PostsRouteChildren: PostsRouteChildren = {
8931044

8941045
const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
8951046

1047+
interface RawStreamRouteChildren {
1048+
RawStreamClientCallRoute: typeof RawStreamClientCallRoute
1049+
RawStreamSsrBinaryHintRoute: typeof RawStreamSsrBinaryHintRoute
1050+
RawStreamSsrMixedRoute: typeof RawStreamSsrMixedRoute
1051+
RawStreamSsrMultipleRoute: typeof RawStreamSsrMultipleRoute
1052+
RawStreamSsrSingleRoute: typeof RawStreamSsrSingleRoute
1053+
RawStreamSsrTextHintRoute: typeof RawStreamSsrTextHintRoute
1054+
RawStreamIndexRoute: typeof RawStreamIndexRoute
1055+
}
1056+
1057+
const RawStreamRouteChildren: RawStreamRouteChildren = {
1058+
RawStreamClientCallRoute: RawStreamClientCallRoute,
1059+
RawStreamSsrBinaryHintRoute: RawStreamSsrBinaryHintRoute,
1060+
RawStreamSsrMixedRoute: RawStreamSsrMixedRoute,
1061+
RawStreamSsrMultipleRoute: RawStreamSsrMultipleRoute,
1062+
RawStreamSsrSingleRoute: RawStreamSsrSingleRoute,
1063+
RawStreamSsrTextHintRoute: RawStreamSsrTextHintRoute,
1064+
RawStreamIndexRoute: RawStreamIndexRoute,
1065+
}
1066+
1067+
const RawStreamRouteWithChildren = RawStreamRoute._addFileChildren(
1068+
RawStreamRouteChildren,
1069+
)
1070+
8961071
interface UsersRouteChildren {
8971072
UsersUserIdRoute: typeof UsersUserIdRoute
8981073
UsersIndexRoute: typeof UsersIndexRoute
@@ -952,6 +1127,7 @@ const rootRouteChildren: RootRouteChildren = {
9521127
InlineScriptsRoute: InlineScriptsRoute,
9531128
LinksRoute: LinksRoute,
9541129
PostsRoute: PostsRouteWithChildren,
1130+
RawStreamRoute: RawStreamRouteWithChildren,
9551131
ScriptsRoute: ScriptsRoute,
9561132
StreamRoute: StreamRoute,
9571133
UsersRoute: UsersRouteWithChildren,

e2e/solid-start/basic/src/routes/__root.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ function RootComponent() {
139139
>
140140
redirect
141141
</Link>{' '}
142+
<Link
143+
to="/raw-stream"
144+
activeProps={{
145+
class: 'font-bold',
146+
}}
147+
>
148+
Raw Stream
149+
</Link>{' '}
142150
<Link
143151
// @ts-expect-error
144152
to="/this-route-does-not-exist"

0 commit comments

Comments
 (0)