From: Evan You Date: Wed, 12 Mar 2025 01:18:57 +0000 (+0800) Subject: wip(vapor): test cases X-Git-Tag: v3.6.0-alpha.1~16^2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e4d295ba14d95ef25c8229f11144694c284d68;p=thirdparty%2Fvuejs%2Fcore.git wip(vapor): test cases --- diff --git a/packages/runtime-vapor/__tests__/hydration.spec.ts b/packages/runtime-vapor/__tests__/hydration.spec.ts index d89d5fab37..6ba2bf895f 100644 --- a/packages/runtime-vapor/__tests__/hydration.spec.ts +++ b/packages/runtime-vapor/__tests__/hydration.spec.ts @@ -243,21 +243,45 @@ describe('Vapor Mode hydration', () => { test.todo('component with anchor insertion', async () => { const { container, data } = await testHydration( ` - + `, { Child: ``, }, ) - expect(container.innerHTML).toMatchInlineSnapshot( - `"
foo
"`, - ) + expect(container.innerHTML).toMatchInlineSnapshot() data.value = 'bar' await nextTick() - expect(container.innerHTML).toMatchInlineSnapshot( - `"
foo
"`, + expect(container.innerHTML).toMatchInlineSnapshot() + }) + + test.todo('consecutive component with anchor insertion', async () => { + const { container, data } = await testHydration( + ` + `, + { + Child: ``, + }, ) + expect(container.innerHTML).toMatchInlineSnapshot() + + data.value = 'bar' + await nextTick() + expect(container.innerHTML).toMatchInlineSnapshot() }) test.todo('if')