@@ -3034,9 +3034,12 @@ describe('Vapor Mode hydration', () => {
30343034 expect ( teleport . anchor ) . toBe ( container . lastChild )
30353035 expect ( teleport . target ) . toBe ( teleportContainer )
30363036 expect ( teleport . targetStart ) . toBe ( teleportContainer . childNodes [ 0 ] )
3037- const children = teleport . nodes [ 0 ] as Node [ ]
3038- expect ( children [ 0 ] ) . toBe ( teleportContainer . childNodes [ 1 ] )
3039- expect ( children [ 1 ] ) . toBe ( teleportContainer . childNodes [ 2 ] )
3037+ expect ( ( teleport . nodes as Node [ ] ) [ 0 ] ) . toBe (
3038+ teleportContainer . childNodes [ 1 ] ,
3039+ )
3040+ expect ( ( teleport . nodes as Node [ ] ) [ 1 ] ) . toBe (
3041+ teleportContainer . childNodes [ 2 ] ,
3042+ )
30403043 expect ( teleport . targetAnchor ) . toBe ( teleportContainer . childNodes [ 3 ] )
30413044
30423045 expect ( container . innerHTML ) . toMatchInlineSnapshot (
@@ -3149,14 +3152,16 @@ describe('Vapor Mode hydration', () => {
31493152
31503153 expect ( teleport1 . target ) . toBe ( teleportContainer )
31513154 expect ( teleport1 . targetStart ) . toBe ( teleportContainer . childNodes [ 0 ] )
3152- const children1 = teleport1 . nodes [ 0 ] as Node [ ]
3153- expect ( children1 [ 0 ] ) . toBe ( teleportContainer . childNodes [ 1 ] )
3155+ expect ( ( teleport1 . nodes as Node [ ] ) [ 0 ] ) . toBe (
3156+ teleportContainer . childNodes [ 1 ] ,
3157+ )
31543158 expect ( teleport1 . targetAnchor ) . toBe ( teleportContainer . childNodes [ 3 ] )
31553159
31563160 expect ( teleport2 . target ) . toBe ( teleportContainer )
31573161 expect ( teleport2 . targetStart ) . toBe ( teleportContainer . childNodes [ 4 ] )
3158- const children2 = teleport2 . nodes [ 0 ] as Node [ ]
3159- expect ( children2 [ 0 ] ) . toBe ( teleportContainer . childNodes [ 5 ] )
3162+ expect ( ( teleport2 . nodes as Node [ ] ) [ 0 ] ) . toBe (
3163+ teleportContainer . childNodes [ 5 ] ,
3164+ )
31603165 expect ( teleport2 . targetAnchor ) . toBe ( teleportContainer . childNodes [ 7 ] )
31613166
31623167 expect ( container . innerHTML ) . toBe (
@@ -3240,9 +3245,8 @@ describe('Vapor Mode hydration', () => {
32403245 expect ( blocks [ 0 ] ) . toBe ( container . childNodes [ 1 ] )
32413246
32423247 const teleport = blocks [ 1 ] as TeleportFragment
3243- const children = teleport . nodes [ 0 ] as Node [ ]
3244- expect ( children [ 0 ] ) . toBe ( container . childNodes [ 3 ] )
3245- expect ( children [ 1 ] ) . toBe ( container . childNodes [ 4 ] )
3248+ expect ( ( teleport . nodes as Node [ ] ) [ 0 ] ) . toBe ( container . childNodes [ 3 ] )
3249+ expect ( ( teleport . nodes as Node [ ] ) [ 1 ] ) . toBe ( container . childNodes [ 4 ] )
32463250 expect ( teleport . anchor ) . toBe ( container . childNodes [ 5 ] )
32473251 expect ( teleport . target ) . toBe ( teleportContainer )
32483252 expect ( teleport . targetStart ) . toBe ( teleportContainer . childNodes [ 0 ] )
@@ -3327,7 +3331,7 @@ describe('Vapor Mode hydration', () => {
33273331 expect ( teleport . anchor ) . toBe ( container . childNodes [ 1 ] )
33283332 expect ( teleport . target ) . toBe ( teleportContainer )
33293333 expect ( teleport . targetStart ) . toBe ( teleportContainer . childNodes [ 0 ] )
3330- expect ( teleport . nodes [ 0 ] ) . toBe ( teleportContainer . childNodes [ 1 ] )
3334+ expect ( teleport . nodes ) . toBe ( teleportContainer . childNodes [ 1 ] )
33313335 expect ( teleport . targetAnchor ) . toBe ( teleportContainer . childNodes [ 2 ] )
33323336 } )
33333337
@@ -3355,11 +3359,11 @@ describe('Vapor Mode hydration', () => {
33553359 expect ( teleport . targetStart ) . toBe ( teleportContainer . childNodes [ 0 ] )
33563360 expect ( teleport . targetAnchor ) . toBe ( teleportContainer . childNodes [ 3 ] )
33573361
3358- const childTeleport = teleport . nodes [ 0 ] as TeleportFragment
3362+ const childTeleport = teleport . nodes as TeleportFragment
33593363 expect ( childTeleport . anchor ) . toBe ( teleportContainer . childNodes [ 2 ] )
33603364 expect ( childTeleport . targetStart ) . toBe ( teleportContainer . childNodes [ 4 ] )
33613365 expect ( childTeleport . targetAnchor ) . toBe ( teleportContainer . childNodes [ 6 ] )
3362- expect ( childTeleport . nodes [ 0 ] ) . toBe ( teleportContainer . childNodes [ 5 ] )
3366+ expect ( childTeleport . nodes ) . toBe ( teleportContainer . childNodes [ 5 ] )
33633367 } )
33643368
33653369 test ( 'unmount (full integration)' , async ( ) => {
0 commit comments