diff --git a/packages/runtime-core/__tests__/components/Teleport.spec.ts b/packages/runtime-core/__tests__/components/Teleport.spec.ts index 8b234e2b..e0a50b14 100644 --- a/packages/runtime-core/__tests__/components/Teleport.spec.ts +++ b/packages/runtime-core/__tests__/components/Teleport.spec.ts @@ -106,7 +106,7 @@ describe('renderer: teleport', () => { const root = nodeOps.createElement('div') const children = ref([h('div', 'teleported')]) - render(h(Teleport, { to: target }, children.value), root) + render(h(() => h(Teleport, { to: target }, children.value)), root) expect(serializeInner(target)).toMatchInlineSnapshot( `"