diff --git a/packages/runtime-core/__tests__/components/BaseTransition.spec.ts b/packages/runtime-core/__tests__/components/BaseTransition.spec.ts index 2622cf64bfe..75037dbfd42 100644 --- a/packages/runtime-core/__tests__/components/BaseTransition.spec.ts +++ b/packages/runtime-core/__tests__/components/BaseTransition.spec.ts @@ -1,4 +1,5 @@ import { vi } from 'vitest' +import { Fragment, TransitionGroup, VNode, VNodeArrayChildren } from '@vue/runtime-dom' import { nodeOps, render, @@ -1195,3 +1196,37 @@ describe('BaseTransition', () => { }) }) }) + + +describe('TransitionGroup', () => { + // #5761: When child has v-if, v-if will result in keys of number type for branches + test('should avoid existing number type child keys duplicate with default index when inherit parent key in case of