From 36fcb23c9389c635687ae5ed509a1035ae76498a Mon Sep 17 00:00:00 2001 From: alentide <3071644646@qq.com> Date: Wed, 20 Aug 2025 12:46:42 +0800 Subject: [PATCH] test(runtime-core): remove incorrect suspense test in vnode spec The test case for 'suspense' was misleading as its implementation was a copy of the functional component test. It is removed because the core logic for block tracking in createBaseVNode only explicitly checks for COMPONENT shape flags. Testing every non-component type is unnecessary. Removing this test improves the clarity and focus of the spec. --- packages/runtime-core/__tests__/vnode.spec.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/runtime-core/__tests__/vnode.spec.ts b/packages/runtime-core/__tests__/vnode.spec.ts index a7f6a2d5684..aa9d4ff35db 100644 --- a/packages/runtime-core/__tests__/vnode.spec.ts +++ b/packages/runtime-core/__tests__/vnode.spec.ts @@ -553,18 +553,6 @@ describe('vnode', () => { expect(vnode.dynamicChildren).toStrictEqual([vnode1]) }) - test('with suspense', () => { - const hoist = createVNode('div') - let vnode1 - const vnode = - (openBlock(), - createBlock('div', null, [ - hoist, - (vnode1 = createVNode(() => {}, null, 'text')), - ])) - expect(vnode.dynamicChildren).toStrictEqual([vnode1]) - }) - // #1039 // {{ bar }} // - content is compiled as slot